diff --git a/Plan/src/main/java/com/djrapitops/plan/ServerVariableHolder.java b/Plan/src/main/java/com/djrapitops/plan/ServerVariableHolder.java index f7bbbb6e1..46feb38ed 100644 --- a/Plan/src/main/java/com/djrapitops/plan/ServerVariableHolder.java +++ b/Plan/src/main/java/com/djrapitops/plan/ServerVariableHolder.java @@ -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 } /** diff --git a/Plan/src/main/java/com/djrapitops/plan/data/listeners/TPSCountTimer.java b/Plan/src/main/java/com/djrapitops/plan/data/listeners/TPSCountTimer.java index 3802b6520..edc65d4e7 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/listeners/TPSCountTimer.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/listeners/TPSCountTimer.java @@ -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();