.BANCHO. .FIX. Fixed and edited !system status

This commit is contained in:
Nyo
2016-06-09 10:51:13 +02:00
parent 4a1d1c6f0e
commit 8c55604c1d
2 changed files with 8 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ def getSystemInfo():
# General stats
data["connectedUsers"] = len(glob.tokens.tokens)
data["webServer"] = glob.conf.config["server"]["server"]
data["matches"] = len(glob.matches.matches)
data["cpuUsage"] = psutil.cpu_percent()
data["totalMemory"] = "{0:.2f}".format(psutil.virtual_memory()[0]/1074000000)
data["usedMemory"] = "{0:.2f}".format(psutil.virtual_memory()[3]/1074000000)