Commit 78f82fa0 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

ntdll: Use proper CPU speed detection on FreeBSD.

Reported by Hardy Schumacher.
parent 0239d212
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment