You are not logged in.
Pages: 1
Hi,
I made this simple temperature checker in C and I am intersted
about what you think about it. Id dynamically displays cpu temperatures and draws a movable
indicator:
Pac. temp: 22.00 [||| ]
Core0: 18.00 [|| ]
Core1: 18.00 [|| ]
Core2: 18.00 [|| ]
Core3: 17.00 [|| ]
it is available form: panzerkampfwagen.eu.org/code/temp/temp.zip
Thanks
Offline
The hardcoded path doesn't work reliably. You may want to check out how lm_sensors does it.
`watch sensors` is what I use to monitor CPU temperature.
This silver ladybug at line 28...
Offline
The hardcoded path doesn't work reliably. You may want to check out how lm_sensors does it.
`watch sensors` is what I use to monitor CPU temperature.
I know, the problem with hardcosded paths is in the motherboard ( on better motherboards it's sensors fill the hwmon0, and cpu takes the hwmon1 folders)
I was thinking about thaking the path as an argument along with hyperthreading. Any toughts?
Offline
This is a case where, ideally, it should "just work": Have the tool figure it out, don't ask me!
I don't know, but if there were any portable way to get this info, I'd use that.
Otherwise, I'd prefer a compile time setting: Alright, tool, I'll figure this out for you, but don't ask me again!
This silver ladybug at line 28...
Offline
I thought that hwmon acted in a certain way when creating the path's, but when I reinstalled hwmon, the cpu was changed from hwmon1 to somewhere else, so it's kind of random where you will find the cpu-properties in hwmon. But I don't know the programming part. Just my experience with hwmon
Offline
Pages: 1