htop-2.1.1_enhanced-version icon indicating copy to clipboard operation
htop-2.1.1_enhanced-version copied to clipboard

Adding different temp zone

Open TKingu opened this issue 5 years ago • 2 comments

Hi, Thanks for this project, it is very useful. I saw that there is only one CPU Temp, which refer to thermal_zone0. I'm trying to add also other thermal zones, since in my board there are different ones. My problem is that I can't understand where Temperature Meter are initialized, since I've seen that this meter is updated by CpuTempMeter_setValues callback, so adding here the zone parameter it will be easy to getting the right values, but how I can insert it to the function?

Many thanks!

TKingu avatar Apr 24 '21 18:04 TKingu

You can refer to a newer version where you can define some handlers. https://github.com/avafinger/htop_2.2.2/blob/master/linux/Platform.c#L278

avafinger avatar Apr 25 '21 03:04 avafinger

Thanks for the reply. I will install this new version, thanks a lot!

TKingu avatar Apr 25 '21 10:04 TKingu