diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 19:57:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 19:57:49 -0500 |
| commit | a3ea303ab86e5db6510a00e373b6e7a6620d426a (patch) | |
| tree | f0781a55a2dc06b9fb72566aba7d133aff330d62 /watchdog.go | |
| parent | 5b99a88e0607426e3651ef1526809c84ede8301a (diff) | |
global hypervisor poll delay
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 6 |
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() |
