summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
committerJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
commit923f7721cca66d84dea77ffd9640d793803142ee (patch)
tree824c9a2b83f574c37279c8526a1566035e78c2bb /watchdog.go
parent03942de00e133daf59da8ed3b6c3e71ce8afe316 (diff)
s/Config/me/ to remove direct access to anything
since most everything needs to be passed to the toolkits everything should be accessed via func()'s Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/watchdog.go b/watchdog.go
index 690ca44..e80861f 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -9,18 +9,19 @@ 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
*/
func Watchdog() {
var i = 1
for {
- log(logInfo, "watchdog timer is alive. give me something to do.", i)
- if (Config.rootNode == nil) {
- log(logInfo, "Config.rootNode == nil", i)
+ log(logInfo, "gui.Watchdog() is alive. give me something to do.", i)
+ if (me.rootNode == nil) {
+ log(logInfo, "me.rootNode == nil", i)
} else {
if (logVerbose) {
- Config.rootNode.ListChildren(true)
+ me.rootNode.ListChildren(true)
}
}
i += 1