Re: ntdll: Change NtQuerySystemInformation to return 100ns ticks for SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION info class (try 4)
12 Dec
2010
12 Dec
'10
10:51 p.m.
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.
5482
Age (days ago)
5482
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov