From 56b92c2c275ba3d4812b0ffdf5ef65aa830ce68a Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 2 May 2021 12:07:08 +0200 Subject: [PATCH] Fix RamUsage --- .../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 22ba7226..dfe551bc 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java @@ -44,9 +44,9 @@ public class RamUsage implements Listener { long presumableFreeMemory = Runtime.getRuntime().maxMemory() - allocatedMemory; double percentageFree = presumableFreeMemory / (double) Runtime.getRuntime().maxMemory(); bossBar.setProgress(1 - percentageFree); - if (mode && percentageFree > 0.7) { + if (mode && percentageFree > 0.75) { mode = false; - } else if (!mode && percentageFree < 0.5) { + } else if (!mode && percentageFree < 0.6) { mode = true; } if (mode) {