Fix MB conversion at RAM usage

This commit is contained in:
Fuzzlemann 2017-07-27 12:03:07 +02:00
parent 0359faf694
commit c6d4444bd6
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@ public class ServerVariableHolder {
ip = server.getIp();
String serverName = server.getName();
usingPaper = serverName.equals("Paper") || serverName.equals("TacoSpigot");
usingPaper = serverName.equals("Paper")
|| serverName.equals("TacoSpigot"); //Fork of Paper
}
/**

View File

@ -75,8 +75,8 @@ public class TPSCountTimer extends AbsRunnable {
Runtime runtime = Runtime.getRuntime();
long totalMemory = runtime.totalMemory() / 1024L;
long usedMemory = totalMemory - runtime.freeMemory() / 1024L;
long totalMemory = runtime.totalMemory();
long usedMemory = (totalMemory - runtime.freeMemory()) / (1024L * 1024L);
int playersOnline = plugin.getServer().getOnlinePlayers().size();
int loadedChunks = getLoadedChunks();