summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/watchdog.go b/watchdog.go
index 6e4aed6..e3a4f0c 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -15,8 +15,8 @@ func TimeFunction(f func()) time.Duration {
}
func (h *HyperT) NewWatchdog() {
- h.Dog = time.NewTicker(h.Delay)
- defer h.Dog.Stop()
+ h.dog = time.NewTicker(me.delay)
+ defer h.dog.Stop()
done := make(chan bool)
/*
// this example would exit/destroy the ticker in 10 seconds
@@ -30,7 +30,7 @@ func (h *HyperT) NewWatchdog() {
case <-done:
fmt.Println("Done!")
return
- case t := <-h.Dog.C:
+ case t := <-h.dog.C:
log.Log(POLL, "Watchdog() ticked", h.pb.Hostname, "Current time: ", t)
h.pollHypervisor()
// h.Scan()