profesorfalken / jHardware

Get crossplatform hardware details with Java
Apache License 2.0
44 stars 16 forks source link

Another NumberFormatException on Linux #6

Open vonkad opened 8 years ago

vonkad commented 8 years ago

This exception occurs on my linux mint 17.3, ASUS Zenbook.

Caused by: java.lang.NumberFormatException: For input string: "3400.0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at com.profesorfalken.jsensors.manager.SensorsManager.getSensors(SensorsManager.java:106) at com.profesorfalken.jsensors.manager.SensorsManager.getCpu(SensorsManager.java:66) at com.profesorfalken.jsensors.manager.SensorsManager.getComponents(SensorsManager.java:54) at com.profesorfalken.jsensors.SensorsLocator.getComponents(SensorsLocator.java:34) at com.profesorfalken.jsensors.JSensors.components(JSensors.java:73) at org.jutils.jhardware.util.TemperatureUtils.getCpuTemperatureByjSensors(TemperatureUtils.java:41) at org.jutils.jhardware.util.TemperatureUtils.getCpuTemperatureForLinux(TemperatureUtils.java:92) at org.jutils.jhardware.info.processor.unix.UnixProcessorInfo.parseInfo(UnixProcessorInfo.java:53) at org.jutils.jhardware.info.processor.AbstractProcessorInfo.getInfo(AbstractProcessorInfo.java:29) at org.jutils.jhardware.info.processor.AbstractProcessorInfo.getInfo(AbstractProcessorInfo.java:25) at org.jutils.jhardware.HardwareInfo.getProcessorInfo(HardwareInfo.java:52) it looks like something that you expect to be an int is on my system a float.

profesorfalken commented 8 years ago

Hello,

Thanks for reporting it!

I will take a look. Can you confirm what version of jHardware you are using?

profesorfalken commented 8 years ago

Ok, I have found it. It is a bug in the component jSensors.

I will try to fix it soon. I will keep you updated!

Regards

vonkad commented 8 years ago

Thanks a lot. We use 0.8.1.

profesorfalken commented 8 years ago

Done. Now it uses the right version of jSensors which includes the fix for the fan speed.

Could you retest using the 0.8.2?

Regards

profesorfalken commented 8 years ago

Hello,

Do you still has this probleme in 0.8.3?