geforkt von SteamWar/BungeeCore
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:
Commit
9a2c5d339a
@ -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){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren