diff options
| author | Jeff Carr <[email protected]> | 2024-11-18 09:41:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-18 09:41:08 -0600 |
| commit | b71fec22c8cc6c5b3be47bd782a7c807be75216c (patch) | |
| tree | 61194783bc2c839eef5a7566b8eaccc014be078b /watchdog.go | |
| parent | 769c9757b7065dc7bde4543a5347e31606875ff2 (diff) | |
keep working towards update workingv0.0.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/watchdog.go b/watchdog.go index 00c729a..c490143 100644 --- a/watchdog.go +++ b/watchdog.go @@ -3,8 +3,6 @@ package main import ( "fmt" "time" - - "go.wit.com/log" ) // timeFunction takes a function as an argument and returns the execution time. @@ -30,11 +28,11 @@ func NewWatchdog() { case <-done: fmt.Println("Done!") return - case t := <-me.dog.C: - log.Info("Watchdog() ticked", me.zookeeper, "Current time: ", t) - updatePackages() + case _ = <-me.dog.C: + // log.Info("Watchdog() ticked", me.zookeeper, "Current time: ", t) + s := updatePackages() // pingStatus() - sendMachine() + sendMachine(s) // h.pollHypervisor() // h.Scan() } |
