diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-23 16:57:49 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-23 16:57:49 -0400 |
commit | d2b291088d027e94f3579ce7602457f8ab141d94 (patch) | |
tree | f22746411f636987586b4dd5b51c927edee12595 /Assistant/Threads | |
parent | f1ccccd2e84efb3e5a3131be229e0fdbbc48aada (diff) |
fix delay of daily sanity check (hacked for testing and accidentially committed)
Diffstat (limited to 'Assistant/Threads')
-rw-r--r-- | Assistant/Threads/SanityChecker.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/Threads/SanityChecker.hs b/Assistant/Threads/SanityChecker.hs index aa7d4ff19..827a17139 100644 --- a/Assistant/Threads/SanityChecker.hs +++ b/Assistant/Threads/SanityChecker.hs @@ -95,11 +95,11 @@ sanityCheckerHourlyThread = namedThread "SanityCheckerHourly" $ forever $ do {- This thread wakes up daily to make sure the tree is in good shape. -} sanityCheckerDailyThread :: UrlRenderer -> NamedThread sanityCheckerDailyThread urlrenderer = namedThread "SanityCheckerDaily" $ forever $ do + waitForNextCheck + debug ["starting sanity check"] void $ alertWhile sanityCheckAlert go debug ["sanity check complete"] - waitForNextCheck - where go = do modifyDaemonStatus_ $ \s -> s { sanityCheckRunning = True } |