mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
ntdll: Use proper CPU speed detection on FreeBSD.
Reported by Hardy Schumacher.
This commit is contained in:
parent
0239d21244
commit
78f82fa063
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ void fill_cpu_info(void)
|
|||
NtCurrentTeb()->Peb->NumberOfProcessors = num;
|
||||
|
||||
len = sizeof(num);
|
||||
if (!sysctlbyname("dev.cpu.0.freq", &num, &len, NULL, 0))
|
||||
if (!sysctlbyname("hw.clockrate", &num, &len, NULL, 0))
|
||||
cpuHz = num * 1000 * 1000;
|
||||
}
|
||||
#elif defined(__sun)
|
||||
|
|
Loading…
Reference in a new issue