diff --git a/src/detection/cpu/cpu_windows.c b/src/detection/cpu/cpu_windows.c index 411571010..09f422e12 100644 --- a/src/detection/cpu/cpu_windows.c +++ b/src/detection/cpu/cpu_windows.c @@ -100,9 +100,7 @@ static const char* detectNCores(FFCPUResult* cpu) ptr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)(((uint8_t*)ptr) + ptr->Size) ) { - if (ptr->Relationship == RelationProcessorCore) - ++cpu->coresPhysical; - else if (ptr->Relationship == RelationGroup) + if (ptr->Relationship == RelationGroup) { for (uint32_t index = 0; index < ptr->Group.ActiveGroupCount; ++index) { @@ -110,10 +108,10 @@ static const char* detectNCores(FFCPUResult* cpu) cpu->coresLogical += ptr->Group.GroupInfo[index].MaximumProcessorCount; } } - - if (ptr->Relationship == RelationProcessorPackage) { + else if (ptr->Relationship == RelationProcessorCore) + ++cpu->coresPhysical; + else if (ptr->Relationship == RelationProcessorPackage) cpu->packages++; - } } return NULL;