1
0
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-09-28 13:39:25 +02:00
Ursprung a66372e5f7
Commit 435dcfceba
3 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen

@ -1 +1 @@
Subproject commit a249d66dcf96bb9aef44b700438c81670ad81de7
Subproject commit 0c68dfd19dc32a848be2cf399e00bc2863739b57

Datei anzeigen

@ -115,7 +115,9 @@ public class BungeeCore extends Plugin {
new PingListener();
local = new Node.LocalNode();
//new Node.RemoteNode("lx");
if(MAIN_SERVER) {
new Node.RemoteNode("lx");
}
commands.put("/tp", null);
commands.put("/bc", null);

Datei anzeigen

@ -208,7 +208,7 @@ public abstract class Node {
protected void calcLoadLimit() {
try {
Process process = prepareExecution("cat /proc/stat /proc/meminfo").start();
if(process.waitFor(1, TimeUnit.SECONDS))
if(!process.waitFor(1, TimeUnit.SECONDS))
throw new IOException(hostname + " timeout");
try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
calcLoadLimit(reader, reader);