All pastes #41878 Raw Edit

Untitled

public text v1 · immutable
#41878 ·published 2006-02-16 21:08 UTC
rendered paste body
Index: corelib/timer.c
===================================================================
--- corelib/timer.c     (revision 1398)
+++ corelib/timer.c     (working copy)
@@ -83,6 +83,9 @@
                                 "reports a resolution of %ld nanosec. "
                                 "Timing may be unreliable!\n", nano,
                                 res.tv_nsec);
+
+                       /* Reset the interval to a sane value */
+                       t->interval = (res.tv_nsec / 1000) + 1;
                }
        }
 }