jHardware icon indicating copy to clipboard operation
jHardware copied to clipboard

When getting total memory on Windows, the return is null

Open klutzer opened this issue 7 years ago • 2 comments

When I run this code:

MemoryInfo memory = HardwareInfo.getMemoryInfo();
System.out.println("Total memory: " + memory.getTotalMemory());
System.out.println("Free memory: " + memory.getFreeMemory());

I get this:

Total memory: null
Free memory: 1177064

Running on Windows 10 Enterprise 2016 LTSB (64 bits)

klutzer avatar Mar 16 '17 13:03 klutzer

Hello,

I do not have currently a Windows 10 system to test. I will check it next week.

Could you confirm if you are using the last version of jHardware? (0.8.4)

Best regards

profesorfalken avatar Mar 18 '17 07:03 profesorfalken

Hi, I've submitted pull request to address this issue. Tested on Windows 10. Regards

trzimar avatar Mar 25 '19 13:03 trzimar