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 e618303 commit 644458bCopy full SHA for 644458b
src/detection/cpu/cpu_apple.c
@@ -59,7 +59,12 @@ static const char* detectFrequency(FFCPUResult* cpu)
59
pMax = pMax > pStart[i] ? pMax : pStart[i];
60
61
if (pMax > 0)
62
- cpu->frequencyMax = pMax / 1000 / 1000;
+ {
63
+ if (pMax > 100000000) // Assume that pMax is in MHz, M1~M3
64
+ cpu->frequencyMax = pMax / 1000 / 1000;
65
+ else // Assume that pMax is in kHz, M4 and later (#1394)
66
+ cpu->frequencyMax = pMax / 1000;
67
+ }
68
69
return NULL;
70
}
0 commit comments