Archiviert
1
0

Merge pull request 'Fix CPU usage threshold' (#218) from FixCPUUsage into master

Reviewed-on: SteamWar/BungeeCore#218
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2021-06-25 07:17:21 +02:00
Commit 9a2c5d339a

Datei anzeigen

@ -285,11 +285,11 @@ public class SubserverSystem {
} }
private static boolean steamwarStartAvailable(){ private static boolean steamwarStartAvailable(){
return LoadEvaluation.getCPULoad() < 0.8 && LoadEvaluation.getRamPercentage() < 0.8; return LoadEvaluation.getCPULoad() < 0.7 && LoadEvaluation.getRamPercentage() < 0.8;
} }
private static boolean remoteStartAvailable(String remote) { private static boolean remoteStartAvailable(String remote) {
return LoadEvaluation.getRemoteCPULoad(remote) < 0.8 && LoadEvaluation.getRemoteRamPercentage(remote) < 0.8; return LoadEvaluation.getRemoteCPULoad(remote) < 0.7 && LoadEvaluation.getRemoteRamPercentage(remote) < 0.8;
} }
private static boolean bauRunning(ProxiedPlayer p, UUID owner){ private static boolean bauRunning(ProxiedPlayer p, UUID owner){