mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Show N/A on unsupported platforms instead of 0KHz
This commit is contained in:
@ -233,6 +233,8 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
||||
|
||||
perc = v[0] + v[1] + v[2] + v[3];
|
||||
|
||||
v[CPU_METER_FREQUENCY] = -1;
|
||||
|
||||
if (perc <= 100. && perc >= 0.) {
|
||||
return perc;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user