Fixed ram usage being incorrect

This commit is contained in:
Carlos
2020-11-28 19:31:58 +01:00
parent 7c4286f7df
commit 27f769f6ac
2 changed files with 10 additions and 13 deletions

View File

@ -14,7 +14,7 @@ public class RamUsageCommand implements WSCommand {
long free = r.freeMemory() / 1024 / 1024;
long max = r.maxMemory() / 1024 / 1024;
long used = max - free;
long used = r.totalMemory() / 1024 / 1024 - free;
wsServer.sendToClient(conn,
new RamUsage(