Linux: accept clock CPU frequency

processor   : 0
cpu         : POWER8 (architected), altivec supported
clock       : 4024.000000MHz
revision    : 2.0 (pvr 004d 0200)

Closes: #424
This commit is contained in:
Christian Göttsche 2020-12-23 17:46:32 +01:00 committed by cgzones
parent f1463fdd64
commit aa08279964

View File

@ -1793,7 +1793,9 @@ static void scanCPUFreqencyFromCPUinfo(LinuxProcessList* this) {
continue;
} else if (
(sscanf(buffer, "cpu MHz : %lf", &frequency) == 1) ||
(sscanf(buffer, "cpu MHz: %lf", &frequency) == 1)
(sscanf(buffer, "cpu MHz: %lf", &frequency) == 1) ||
(sscanf(buffer, "clock : %lfMHz", &frequency) == 1) ||
(sscanf(buffer, "clock: %lfMHz", &frequency) == 1)
) {
if (cpuid < 0 || cpuid > (cpus - 1)) {
continue;