Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
a66372e5f7
Commit
435dcfceba
@ -1 +1 @@
|
||||
Subproject commit a249d66dcf96bb9aef44b700438c81670ad81de7
|
||||
Subproject commit 0c68dfd19dc32a848be2cf399e00bc2863739b57
|
@ -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);
|
||||
|
@ -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);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren