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;
|
long usedMemory = totalMemory - freeMemory;
|
||||||
usageSelf = usedMemory / (double) totalMemory;
|
usageSelf = usedMemory / (double) totalMemory;
|
||||||
double usageSelfByMax = usedMemory / (double) maxMemory;
|
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();
|
usage = _getUsage();
|
||||||
load = _getLoad();
|
load = _getLoad();
|
||||||
try {
|
try {
|
||||||
Thread.sleep(10000);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren