diff options
| author | Jeff Carr <[email protected]> | 2024-10-12 11:54:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-12 11:54:01 -0500 |
| commit | 487c6fd11c2746a71fee1a6b562e41fbb2486382 (patch) | |
| tree | 9b586687707d3778856ef285fdd88d583c3b8eb7 /watchdog.go | |
| parent | a6b385e21628989b9c14958fdaaca00fbf1f4663 (diff) | |
polling duration times work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/watchdog.go b/watchdog.go index 155c79d..41bc698 100644 --- a/watchdog.go +++ b/watchdog.go @@ -12,7 +12,7 @@ import ( func (h *HyperT) NewWatchdog() { var delay int = 99 var i int = delay - h.MyTicker(h.Delay, "new Watchdog() "+h.Hostname, func() { + h.MyTicker(h.Delay, h.Hostname, func() { i += 1 // check if the env var is set to autoscan if os.Getenv("WATCHDOG_AUTO_SCAN") != "true" { @@ -56,7 +56,7 @@ func (h *HyperT) MyTicker(t time.Duration, name string, f func()) { fmt.Println("Done!") return case t := <-h.Dog.C: - log.Info(name, "Current time: ", t) + log.Log(POLL, "Watchdog() ticked", name, "Current time: ", t) h.Scan() // f() } |
