diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-06-10 21:18:59 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-06-10 21:18:59 -0400 |
| commit | aa193f7871c7c769d235fad2709b7a1017053cbe (patch) | |
| tree | fb81d5a7b64757a2c7fcbcfcbb9d097b01ae55f4 | |
| parent | ab9afbe2e0e459c342e49abcfbe5350fafaf0afb (diff) | |
| download | checkup-aa193f7871c7c769d235fad2709b7a1017053cbe.tar.gz checkup-aa193f7871c7c769d235fad2709b7a1017053cbe.tar.xz | |
Renotify at the renotify interval, not the check interval.
| -rw-r--r-- | cmd/main/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/main/main.go b/cmd/main/main.go index 531b0ab..98b0638 100644 --- a/cmd/main/main.go +++ b/cmd/main/main.go @@ -65,6 +65,9 @@ func jobNotifyDedup(conf *Config, prevJobs, newJobs map[string]*jobResponse) { if time.Now().After( oldresp.Time.Add(time.Duration(conf.RenotifyInterval) * time.Second)) { + // Reset the time + newJobs[id] = resp + buf.Write([]byte( "still active --> " + resp.Message, )) |
