Fix RamUsage
Dieser Commit ist enthalten in:
Ursprung
7c5cd834a5
Commit
3276094714
@ -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.75) {
|
||||
if (mode && percentageFree > 0.6) {
|
||||
mode = false;
|
||||
} else if (!mode && percentageFree < 0.6) {
|
||||
} else if (!mode && percentageFree < 0.4) {
|
||||
mode = true;
|
||||
}
|
||||
if (mode) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren