use int64 instead of int
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-06-16 08:51:35 +10:00
parent 4a9693412e
commit f0c9789819

View File

@@ -282,7 +282,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(time.Duration(int(time.Minute) * int(*fuzzyMinutes)))
fuzzyTime := vmRestartTime.Add(time.Duration(int64(time.Minute) * int64(*fuzzyMinutes)))
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