Hotfix BauSystem RamUsage and AutoShutdown
Dieser Commit ist enthalten in:
Ursprung
fe6a40577c
Commit
08e0578fb4
@ -34,6 +34,7 @@ public class RamUsage {
|
||||
try {
|
||||
long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean()).getTotalPhysicalMemorySize();
|
||||
long freeMemory = ((com.sun.management.OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean()).getFreePhysicalMemorySize();
|
||||
System.out.println((memorySize - freeMemory) / (double) memorySize);
|
||||
return (memorySize - freeMemory) / (double) memorySize;
|
||||
} catch (Throwable throwable) {
|
||||
throwable.printStackTrace();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren