SteamWar/BungeeCore
Archiviert
13
2

Add lx
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

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(); new PingListener();
local = new Node.LocalNode(); local = new Node.LocalNode();
//new Node.RemoteNode("lx"); if(MAIN_SERVER) {
new Node.RemoteNode("lx");
}
commands.put("/tp", null); commands.put("/tp", null);
commands.put("/bc", null); commands.put("/bc", null);

Datei anzeigen

@ -208,7 +208,7 @@ public abstract class Node {
protected void calcLoadLimit() { protected void calcLoadLimit() {
try { try {
Process process = prepareExecution("cat /proc/stat /proc/meminfo").start(); 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"); throw new IOException(hostname + " timeout");
try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
calcLoadLimit(reader, reader); calcLoadLimit(reader, reader);