OSSP CVS Repository

ossp - Check-in [4386]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4386
Date: 2004-Jan-19 15:56:35 (local)
2004-Jan-19 14:56:35 (UTC)
User:rse
Branch:
Comment: nanosecond calculations are correct. Nevertheless start counting from 0 because it looks better ;-)
Tickets:
Inspections:
Files:
ossp-pkg/uuid/uuid.c      1.43 -> 1.44     4 inserted, 2 deleted

ossp-pkg/uuid/uuid.c 1.43 -> 1.44

--- uuid.c       2004/01/19 14:11:49     1.43
+++ uuid.c       2004/01/19 14:56:35     1.44
@@ -756,9 +756,11 @@
 
         /* check whether system time changed since last retrieve */
         if (!(   time_now.tv_sec  == uuid->time_last.tv_sec
-              && time_now.tv_usec == uuid->time_last.tv_usec))
-            /* reset time sequence counter */
+              && time_now.tv_usec == uuid->time_last.tv_usec)) {
+            /* reset time sequence counter and continue */
             uuid->time_seq = 0;
+            break;
+        }
 
         /* until we are out of UUIDs per tick, increment
            the time/tick sequence counter and continue */

CVSTrac 2.0.1