mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Update CPU freq display to use NAN on error
This commit is contained in:
@ -162,7 +162,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
||||
v[CPU_METER_STEAL] = 0.0;
|
||||
v[CPU_METER_GUEST] = 0.0;
|
||||
v[CPU_METER_IOWAIT] = 0.0;
|
||||
v[CPU_METER_FREQUENCY] = -1;
|
||||
v[CPU_METER_FREQUENCY] = NAN;
|
||||
Meter_setItems(this, 8);
|
||||
totalPercent = v[0]+v[1]+v[2]+v[3];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user