propellor spin
This commit is contained in:
parent
99ab46498c
commit
335cce275a
|
@ -20,6 +20,7 @@ import qualified Data.Map as M
|
||||||
period :: Property -> Recurrance -> Property
|
period :: Property -> Recurrance -> Property
|
||||||
period prop recurrance = Property desc $ do
|
period prop recurrance = Property desc $ do
|
||||||
lasttime <- getLastChecked (propertyDesc prop)
|
lasttime <- getLastChecked (propertyDesc prop)
|
||||||
|
print lasttime
|
||||||
nexttime <- fmap startTime <$> nextTime schedule lasttime
|
nexttime <- fmap startTime <$> nextTime schedule lasttime
|
||||||
t <- localNow
|
t <- localNow
|
||||||
if Just t >= nexttime
|
if Just t >= nexttime
|
||||||
|
|
Loading…
Reference in New Issue