]> gitweb.factorcode.org Git - factor.git/commitdiff
core-foundation.run-loop bug fix for Doug's bug fix
authorSlava Pestov <slava@shill-2.local>
Sun, 17 Apr 2011 02:11:43 +0000 (19:11 -0700)
committerSlava Pestov <slava@shill-2.local>
Sun, 17 Apr 2011 02:11:43 +0000 (19:11 -0700)
basis/core-foundation/run-loop/run-loop.factor

index 22214cc9415a4fe900aa1695a9dd33a02e2f73b0..b4465c2975f07c18f747df3536069caf74777bb4 100644 (file)
@@ -105,9 +105,9 @@ TUPLE: run-loop fds sources timers ;
     >CFAbsoluteTime CFRunLoopTimerSetNextFireDate ;
 
 : reset-timer ( timer -- )
-    sleep-time dup
-    [ 1000 /f system-micros + (reset-timer) ]
-    [ 2drop ] if ;
+    sleep-time
+    [ 1000 /f ] [ 1,000,000 ] if* system-micros +
+    (reset-timer) ;
 
 PRIVATE>