Author: jra
Date: 2007-06-05 19:17:05 +0000 (Tue, 05 Jun 2007)
New Revision: 23357

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23357

Log:
timespec_current() was returning the wrong ns time
(multiplying tv_sec, not tv_usec).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/time.c
   branches/SAMBA_3_0_25/source/lib/time.c
   branches/SAMBA_3_0_26/source/lib/time.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/time.c
===================================================================
--- branches/SAMBA_3_0/source/lib/time.c        2007-06-05 12:58:18 UTC (rev 
23356)
+++ branches/SAMBA_3_0/source/lib/time.c        2007-06-05 19:17:05 UTC (rev 
23357)
@@ -1111,7 +1111,7 @@
        struct timespec ts;
        GetTimeOfDay(&tv);
        ts.tv_sec = tv.tv_sec;
-       ts.tv_nsec = tv.tv_sec * 1000;
+       ts.tv_nsec = tv.tv_usec * 1000;
        return ts;
 }
 

Modified: branches/SAMBA_3_0_25/source/lib/time.c
===================================================================
--- branches/SAMBA_3_0_25/source/lib/time.c     2007-06-05 12:58:18 UTC (rev 
23356)
+++ branches/SAMBA_3_0_25/source/lib/time.c     2007-06-05 19:17:05 UTC (rev 
23357)
@@ -1111,7 +1111,7 @@
        struct timespec ts;
        GetTimeOfDay(&tv);
        ts.tv_sec = tv.tv_sec;
-       ts.tv_nsec = tv.tv_sec * 1000;
+       ts.tv_nsec = tv.tv_usec * 1000;
        return ts;
 }
 

Modified: branches/SAMBA_3_0_26/source/lib/time.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/time.c     2007-06-05 12:58:18 UTC (rev 
23356)
+++ branches/SAMBA_3_0_26/source/lib/time.c     2007-06-05 19:17:05 UTC (rev 
23357)
@@ -1111,7 +1111,7 @@
        struct timespec ts;
        GetTimeOfDay(&tv);
        ts.tv_sec = tv.tv_sec;
-       ts.tv_nsec = tv.tv_sec * 1000;
+       ts.tv_nsec = tv.tv_usec * 1000;
        return ts;
 }
 

Reply via email to