diff options
| author | Jeff Carr <[email protected]> | 2024-02-05 12:15:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-05 12:15:30 -0600 |
| commit | 8fcf5f668b182bd382b489cd19cfdcd59628b279 (patch) | |
| tree | 3f42c12d195fd9f4159cec7371d8e91fd8a2be20 /watchdog.go | |
| parent | 47c928aaf5f5093e7681fe7841cd6a8eb4119254 (diff) | |
minor changes for v0.20
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/watchdog.go b/watchdog.go index 07a1dee..121e91b 100644 --- a/watchdog.go +++ b/watchdog.go @@ -10,21 +10,13 @@ var watchtime time.Duration = 100 // in tenths of seconds /* This program sits here. -If you exit here, the whole thing will os.Exit() -TODO: use Ticker - This goroutine can be used like a watchdog timer +TODO: handle toolkit panics here? */ func Watchdog() { var i = 1 - /* - for { - log.Verbose("gui.Watchdog() is alive. give me something to do.", i) - time.Sleep(watchtime * time.Second / 10) - } - */ // check the four known things to see if they are all WORKING - myTicker(3*time.Second, "WATCHDOG", func() { + myTicker(10*time.Second, "WATCHDOG", func() { i += 1 log.Log(INFO, "myTicker() ticked", i) }) |
