From a3ea303ab86e5db6510a00e373b6e7a6620d426a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 22 Oct 2024 19:57:49 -0500 Subject: global hypervisor poll delay Signed-off-by: Jeff Carr --- watchdog.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'watchdog.go') 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() -- cgit v1.2.3