summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-13 00:57:29 -0500
committerJeff Carr <[email protected]>2024-10-13 00:57:29 -0500
commit7a4bc0b5d6fea7f8d036b36279564dc065e74301 (patch)
treeefe77a45fe34d13eaccd01ddd32efa993cde6e3f /poll.go
parent62e9d8cfb1563ea7dbedf26a0dc593e4227cf413 (diff)
track hypervisor daemon kill count
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/poll.go b/poll.go
index 6d7ebc7..2979052 100644
--- a/poll.go
+++ b/poll.go
@@ -56,6 +56,7 @@ func (h *HyperT) pollHypervisor() {
}
}
h.lastpoll = time.Now()
+ h.killcount = 0 // poll worked. reset killcount
}
func findDroplet(name string) *DropletT {
@@ -88,7 +89,7 @@ func clusterHealthy() bool {
good = false
d.CurrentState = "MISSING"
}
- l := shell.FormatDuration(dur)
+ l := shell.FormatDuration(dur)
if l == "" {
log.Info("DUR IS EMPTY", dur)
}