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