Update CPU freq display to use NAN on error

This commit is contained in:
Benny Baumann
2020-09-07 12:24:32 +02:00
committed by cgzones
parent ebcf924643
commit 3c65d78d77
8 changed files with 11 additions and 8 deletions

View File

@ -1153,7 +1153,7 @@ static inline double LinuxProcessList_scanCPUFrequency(LinuxProcessList* this) {
for (int i = 0; i <= cpus; i++) {
CPUData* cpuData = &(this->cpus[i]);
cpuData->frequency = -1;
cpuData->frequency = NAN;
}
int numCPUsWithFrequency = 0;