propellor spin

This commit is contained in:
Joey Hess 2014-04-09 00:57:57 -04:00
parent 99ab46498c
commit 335cce275a
Failed to extract signature
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import qualified Data.Map as M
period :: Property -> Recurrance -> Property
period prop recurrance = Property desc $ do
lasttime <- getLastChecked (propertyDesc prop)
print lasttime
nexttime <- fmap startTime <$> nextTime schedule lasttime
t <- localNow
if Just t >= nexttime