We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67eafb3 commit bbea3dcCopy full SHA for bbea3dc
linux/LinuxMachine.c
@@ -590,7 +590,10 @@ static void scanCPUFrequencyFromCPUinfo(LinuxMachine* this) {
590
if (fgets(buffer, PROC_LINE_LENGTH, file) == NULL)
591
break;
592
593
- if (sscanf(buffer, "processor : %d", &cpuid) == 1) {
+ if (
594
+ (sscanf(buffer, "processor : %d", &cpuid) == 1) ||
595
+ (sscanf(buffer, "cpu number : %d", &cpuid) == 1) // s390: https://github.com/torvalds/linux/blob/v6.15/arch/s390/kernel/processor.c#L349
596
+ ) {
597
continue;
598
} else if (
599
(sscanf(buffer, "cpu MHz : %lf", &frequency) == 1) ||
0 commit comments