From 29fb59b4bcd96ce1581027a71dff5f52c055543d Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 15 Jun 2023 10:33:45 +1000 Subject: [PATCH] add instead of subtract --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d728d6e..0804b87 100644 --- a/main.go +++ b/main.go @@ -280,7 +280,7 @@ func main() { vmRestartTime := event.CreatedTime.In(location) // Sometimes host HA events can come through a few minutes after a VM restart event, so create a "fuzzy" starting time to search for host HA events - fuzzyTime := vmRestartTime.Add(-5 * time.Minute) + fuzzyTime := vmRestartTime.Add(5 * time.Minute) log.Printf("Failure event for VM '%s' restarted in cluster '%s'\n", event.Vm.Name, event.ComputeResource.Name) // Get a reference to the cluster mentioned