ntdll: Change NtQuerySystemInformation to return 100ns ticks for SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION info class (try 4)
Nikolay Sivov
bunglehead at gmail.com
Sun Dec 12 16:51:44 CST 2010
On 12/13/2010 01:19, Louis Lenders wrote:
> Change from try 3: improved macro as per Juan's suggestion, and made user_hz a static variable
>
> /proc/stat measures the times
> in units of USER_HZ, whereas Windows uses 100ns ticks.
> This should fix http://bugs.winehq.org/show_bug.cgi?id=23847
> @@ -1591,6 +1593,9 @@ NTSTATUS WINAPI NtQuerySystemInformation(
> int count;
> char name[10];
> char line[255];
> + static long user_hz;
> +
> + user_hz = sysconf(_SC_CLK_TCK);
This change doesn't make any difference, I think the idea was to make it
global.
More information about the wine-devel
mailing list