From 0988e6cde55c16890007cbc724534d0bd2fe51dc Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Mon, 29 Aug 2022 12:20:06 -0400 Subject: [PATCH] fix: CheckInterval duration being doubled - closes #19 Signed-off-by: Liam Stanley --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index f7569c8..df7df9a 100644 --- a/daemon.go +++ b/daemon.go @@ -23,7 +23,7 @@ func worker(ctx context.Context, wg *sync.WaitGroup, addr string) { var errDelay time.Duration for { - errDelay = (30*time.Second)*time.Duration(errCount) + conf.CheckInterval + errDelay = (30 * time.Second) * time.Duration(errCount) if errDelay > conf.MaxCheckInterval { errDelay = conf.MaxCheckInterval }