mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
Update CPU freq display to use NAN on error
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user