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.