Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
4d4e13ad53
Commit
a950640aae
@ -44,12 +44,12 @@ public class RamUsage {
|
||||
long usedMemory = totalMemory - freeMemory;
|
||||
usageSelf = usedMemory / (double) totalMemory;
|
||||
double usageSelfByMax = usedMemory / (double) maxMemory;
|
||||
System.out.println("Self: " + usageSelf + "/" + usageSelfByMax + /* " " + maxMemory + " " + totalMemory + " " + freeMemory + " " + usedMemory + */ " Ram: " + usage + " CPU: " + load);
|
||||
// System.out.println("Self: " + usageSelf + "/" + usageSelfByMax + /* " " + maxMemory + " " + totalMemory + " " + freeMemory + " " + usedMemory + */ " Ram: " + usage + " CPU: " + load);
|
||||
|
||||
usage = _getUsage();
|
||||
load = _getLoad();
|
||||
try {
|
||||
Thread.sleep(10000);
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren