]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "crontab: instead of after= make it after."
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 21 Mar 2019 17:55:22 +0000 (10:55 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 21 Mar 2019 17:55:22 +0000 (10:55 -0700)
This reverts commit a3d5e3ffcb8ff60ec16c3bf8cadda4aa02300609.

extra/crontab/crontab.factor

index addedb7e29ba697d6d56ba0fb6f84857c312d11d..50c9e069516834f7e4279c8ee3c79ef4bc90a8b4 100644 (file)
@@ -55,7 +55,9 @@ CONSTANT: aliases H{
 
 :: next-time-after ( cronentry timestamp -- )
 
-    timestamp 0 >>second 1 minutes (time+) 2drop
+    timestamp second>> 0 > [
+        timestamp 0 >>second 1 minutes (time+) 2drop
+    ] when
 
     timestamp month>> :> month
     cronentry months>> [ month >= ] find nip [