mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Update CPU freq display to use NAN on error
This commit is contained in:
@ -186,7 +186,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
||||
percent = CLAMP(percent, 0.0, 100.0);
|
||||
if (isnan(percent)) percent = 0.0;
|
||||
|
||||
v[CPU_METER_FREQUENCY] = -1;
|
||||
v[CPU_METER_FREQUENCY] = NAN;
|
||||
|
||||
return percent;
|
||||
}
|
||||
|
Reference in New Issue
Block a user