From 829e3c64f07f6362ffb018765a905d5552e8cee1 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 3 Apr 2021 08:33:34 +0200 Subject: [PATCH] Hotfix BauSystem RamUsage and AutoShutdown --- BauSystem_Main/src/de/steamwar/bausystem/RamUsage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/RamUsage.java b/BauSystem_Main/src/de/steamwar/bausystem/RamUsage.java index eb249b1..33a1c48 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/RamUsage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/RamUsage.java @@ -34,7 +34,7 @@ public class RamUsage { try { long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean()).getTotalPhysicalMemorySize(); long freeMemory = ((com.sun.management.OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean()).getFreePhysicalMemorySize(); - System.out.println((memorySize - freeMemory) / (double) memorySize); + System.out.println(memorySize + " " + freeMemory); return (memorySize - freeMemory) / (double) memorySize; } catch (Throwable throwable) { throwable.printStackTrace();