Skip to content

Commit 88ebeb2

Browse files
committed
CPU: fix core count output in multi-package platforms
Fix #1413
1 parent f28f5e2 commit 88ebeb2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/modules/cpu/cpu.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ void ffPrintCPU(FFCPUOptions* options)
6969
if(coreTypes.length > 0)
7070
ffStrbufAppendF(&str, " (%s)", coreTypes.chars);
7171
else if(cpu.coresOnline > 1)
72-
{
73-
if(cpu.packages > 1)
74-
ffStrbufAppendF(&str, " (%u)", cpu.coresOnline / 2);
75-
else
76-
ffStrbufAppendF(&str, " (%u)", cpu.coresOnline);
77-
}
72+
ffStrbufAppendF(&str, " (%u)", cpu.coresOnline);
7873

7974
uint32_t freq = cpu.frequencyMax;
8075
if(freq == 0)

0 commit comments

Comments
 (0)