Show N/A on unsupported platforms instead of 0KHz

This commit is contained in:
Arnavion
2019-08-10 17:17:45 -07:00
parent 43728b37e7
commit 909bb86f05
6 changed files with 17 additions and 1 deletions

View File

@ -217,6 +217,8 @@ double Platform_setCPUValues(Meter* mtr, int cpu) {
/* Convert to percent and return */
total = mtr->values[CPU_METER_NICE] + mtr->values[CPU_METER_NORMAL] + mtr->values[CPU_METER_KERNEL];
mtr->values[CPU_METER_FREQUENCY] = -1;
return CLAMP(total, 0.0, 100.0);
}