Skip to content

Commit

Permalink
Merge pull request #70 from MojtabaTajik/bugfix/67-FixIncorrectCpuCor…
Browse files Browse the repository at this point in the history
…eNumbers

Use GetNativeSystemInfo instead of GetSystemInfo
  • Loading branch information
gsass1 authored Sep 7, 2024
2 parents 3ceac49 + 4012216 commit e4276cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntop.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ static void PollInitialSystemInfo(void)
CPUFrequency = (double)PerformanceFrequency.QuadPart / 1000000.0;

SYSTEM_INFO SystemInfo;
GetSystemInfo(&SystemInfo);
GetNativeSystemInfo(&SystemInfo);
CPUCoreCount = SystemInfo.dwNumberOfProcessors;

HKEY Key;
Expand Down

0 comments on commit e4276cc

Please sign in to comment.