Skip to content

Commit

Permalink
fix: CheckInterval duration being doubled
Browse files Browse the repository at this point in the history
- closes #19

Signed-off-by: Liam Stanley <[email protected]>
  • Loading branch information
lrstanley committed Aug 29, 2022
1 parent ccabcff commit 0988e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0988e6c

Please sign in to comment.