summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-13 03:20:48 -0500
committerJeff Carr <[email protected]>2024-10-13 03:20:48 -0500
commitffe754a96a68e7cf8905344073e3b1eedb78e94b (patch)
treeedb7819d879fc42ca88a78d7f6c7c6b202bf1843 /event.go
parente149b3218d26b4996fc76072145efda6eb9f9856 (diff)
track the global killcount of virtigod restarts
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
-rw-r--r--event.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/event.go b/event.go
index d554c78..c6e4bb5 100644
--- a/event.go
+++ b/event.go
@@ -20,4 +20,5 @@ func (h *HyperT) RestartDaemon() {
dur := time.Since(h.lastpoll) // Calculate the elapsed time
log.Info("KILLED DAEMON", h.Hostname, shell.FormatDuration(dur), "curl", url)
+ me.killcount += 1
}