From: Jeffrey Altman Date: Mon, 6 Mar 2006 03:05:02 +0000 (+0000) Subject: STABLE14-windows-rx-lwp-clock-20060305 X-Git-Tag: openafs-stable-1_4_1-rc10~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f3ec55dadaf2d410894c3aa5ea926f42a68bdb7d;p=packages%2Fo%2Fopenafs.git STABLE14-windows-rx-lwp-clock-20060305 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. (cherry picked from commit c582cab1fb1708109f2aa26aab8eba189198e729) --- diff --git a/src/rx/rx_clock_nt.c b/src/rx/rx_clock_nt.c index cab18d435..96bf81e8b 100644 --- a/src/rx/rx_clock_nt.c +++ b/src/rx/rx_clock_nt.c @@ -50,10 +50,8 @@ clock_Init(void) OutputDebugString("No High Performance clock, exiting.\n"); exit(1); } - clockInitialized = 1; - (void)QueryPerformanceCounter(&rxi_clock0); - + clock_UpdateTime(); }