diff options
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) }) |
