From a950640aae6e7e13b99ae346dedd6127b063eae5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Jun 2023 12:18:51 +0200 Subject: [PATCH] Disable System.out messages Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/world/RamUsage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java index ee4fa0d2..a4451fda 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java @@ -44,12 +44,12 @@ public class RamUsage { long usedMemory = totalMemory - freeMemory; usageSelf = usedMemory / (double) totalMemory; double usageSelfByMax = usedMemory / (double) maxMemory; - System.out.println("Self: " + usageSelf + "/" + usageSelfByMax + /* " " + maxMemory + " " + totalMemory + " " + freeMemory + " " + usedMemory + */ " Ram: " + usage + " CPU: " + load); + // System.out.println("Self: " + usageSelf + "/" + usageSelfByMax + /* " " + maxMemory + " " + totalMemory + " " + freeMemory + " " + usedMemory + */ " Ram: " + usage + " CPU: " + load); usage = _getUsage(); load = _getLoad(); try { - Thread.sleep(10000); + Thread.sleep(1000); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }