mirror of https://github.com/xzeldon/htop.git
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:
parent
f1463fdd64
commit
aa08279964
|
@ -1793,7 +1793,9 @@ static void scanCPUFreqencyFromCPUinfo(LinuxProcessList* this) {
|
||||||
continue;
|
continue;
|
||||||
} else if (
|
} 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, "cpu MHz: %lf", &frequency) == 1) ||
|
||||||
|
(sscanf(buffer, "clock : %lfMHz", &frequency) == 1) ||
|
||||||
|
(sscanf(buffer, "clock: %lfMHz", &frequency) == 1)
|
||||||
) {
|
) {
|
||||||
if (cpuid < 0 || cpuid > (cpus - 1)) {
|
if (cpuid < 0 || cpuid > (cpus - 1)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue