You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/08/10 17:21:53 UTC

cvs commit: apache-apr/apr/time/win32 time.c

rbb         99/08/10 08:21:53

  Modified:    apr/time/win32 time.c
  Log:
  Fix a bug in the Windows ap_timediff function.  Win32 doesn't use a rationale
  time slice for their internal representation, not seconds, not milliseconds,
  not even nanoseconds.  No, Windows uses 100-nanosecond blocks to represent
  their times.   Ugh.
  
  Revision  Changes    Path
  1.6       +1 -1      apache-apr/apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/time/win32/time.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- time.c	1999/08/09 19:25:03	1.5
  +++ time.c	1999/08/10 15:21:51	1.6
  @@ -153,6 +153,6 @@
   	ib = ib << 32;
   	ib |= fb.dwLowDateTime;
   
  -    *rv = (int)((ia - ib) / 1000000);
  +    *rv = (int)((ia - ib) / 10000);
       return APR_SUCCESS;
   }