From be537cde170e8825d18af46302b5458e23e1f4d0 Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Fri, 11 Sep 2015 11:01:48 -0600 Subject: [PATCH] Don't let unknowns trigger until a full check interval after restore state finishes. --- cmd/bosun/sched/bolt.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bosun/sched/bolt.go b/cmd/bosun/sched/bolt.go index 4ceff1283a..871295aaeb 100644 --- a/cmd/bosun/sched/bolt.go +++ b/cmd/bosun/sched/bolt.go @@ -115,6 +115,9 @@ func (s *Schedule) save() { // RestoreState restores notification and alert state from the file on disk. func (s *Schedule) RestoreState() error { + defer func() { + bosunStartupTime = time.Now() + }() slog.Infoln("RestoreState") start := time.Now() s.Lock("RestoreState")