]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "time.unix: faster set-system-time."
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 18 Dec 2020 15:16:35 +0000 (07:16 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 18 Dec 2020 15:16:35 +0000 (07:16 -0800)
This reverts commit 467c284db5de06f4e89f482b203752aa38b799bc.

extra/time/unix/unix.factor

index 8ab5cf70e11b8f0172e7ead3fe4b4757dba8b4de..19129b360bd75f1a4007c6bb5d26f05fe23b1d7f 100644 (file)
@@ -8,6 +8,6 @@ IN: time.unix
     gmt-offset>> duration>minutes 1 \ timezone <struct-boa> ; inline
 
 M: unix set-system-time
-    [ unix-1970 (time-) 1000000 * >integer make-timeval ]
+    [ unix-1970 time- duration>microseconds >integer make-timeval ]
     [ timestamp>timezone ] bi
     settimeofday io-error ;