fix sleep on most ratios
authorChristophe Rhodes <csr21@cantab.net>
Mon, 3 Jun 2013 08:49:49 +0000 (09:49 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Mon, 3 Jun 2013 08:49:49 +0000 (09:49 +0100)
really really ensure that the second argument to nanosleep is an
integer

src/code/toplevel.lisp

index 97199db..1c00f03 100644 (file)
@@ -181,7 +181,7 @@ means to wait indefinitely.")
        (multiple-value-bind (quot rem) (truncate (numerator seconds)
                                                  (denominator seconds))
          (values quot
-                 (* rem (/ 1000000000 (denominator seconds))))))
+                 (truncate (* rem (/ 1000000000 (denominator seconds)))))))
       (t
        (multiple-value-bind (sec frac)
            (truncate seconds)