Add Ram Usage Detector
This commit is contained in:
committed by
Sheepit Renderfarm
parent
2e46685068
commit
1969f57da3
@@ -31,7 +31,7 @@ import com.sheepit.client.hardware.cpu.CPU;
|
||||
public abstract class OS {
|
||||
private static SystemInfo systemInfo = new SystemInfo();
|
||||
|
||||
static OperatingSystem operatingSystem = systemInfo.getOperatingSystem();
|
||||
public static OperatingSystem operatingSystem = systemInfo.getOperatingSystem();
|
||||
|
||||
private static HardwareAbstractionLayer hardwareAbstractionLayer = systemInfo.getHardware();
|
||||
|
||||
@@ -48,7 +48,7 @@ public abstract class OS {
|
||||
return (name() + " " + operatingSystem.getVersionInfo()).toLowerCase();
|
||||
}
|
||||
|
||||
public long getMemory() {
|
||||
public long getTotalMemory() {
|
||||
return hardwareAbstractionLayer.getMemory().getTotal() / 1024;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user