]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-rx-lwp-clock-20060305
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 6 Mar 2006 03:04:38 +0000 (03:04 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 6 Mar 2006 03:04:38 +0000 (03:04 +0000)
clock_Init() was broken because it would initialize rxi_clock0
with QueryPerformanceCounter() and then call clock_UpdateTime().
So instead of getting an ever increasing value you would get a
fixed value determined by how long it takes to make a function call
between to QueryPerformanceCounter() calls.

src/rx/rx_clock_nt.c

index cab18d4352b6ccf57404a6dac961e526f803ab04..96bf81e8b865bbab430739fc95b9d081a2e6625c 100644 (file)
@@ -50,10 +50,8 @@ clock_Init(void)
        OutputDebugString("No High Performance clock, exiting.\n");
        exit(1);
     }
-
     clockInitialized = 1;
-    (void)QueryPerformanceCounter(&rxi_clock0);
-
+    
     clock_UpdateTime();
 }