stats: incorrect clock square algorithm
[openafs.git] / src / rx / rx_clock.h
index c1184e9..a836fab 100644 (file)
@@ -183,7 +183,7 @@ clock_GetTime(struct clock *cv)
                      + 2 * ((c2)->usec / 1000) * ((c2)->usec % 1000) / 1000   \
                      + ((((c2)->usec % 1000) > 707) ? 1 : 0);                 \
      }                                                                        \
-   if ((c1)->usec > 1000000) {                                                \
+   while ((c1)->usec > 1000000) {                                             \
         (c1)->usec -= 1000000;                                                \
         (c1)->sec++;                                                          \
    }                                                                          \