mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Show CPU temperature in CPU meter
Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
This commit is contained in:
@ -224,6 +224,7 @@ double Platform_setCPUValues(Meter* mtr, int cpu) {
|
||||
total = mtr->values[CPU_METER_NICE] + mtr->values[CPU_METER_NORMAL] + mtr->values[CPU_METER_KERNEL];
|
||||
|
||||
mtr->values[CPU_METER_FREQUENCY] = NAN;
|
||||
mtr->values[CPU_METER_TEMPERATURE] = NAN;
|
||||
|
||||
return CLAMP(total, 0.0, 100.0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user