use possible hosts for actual vm restart time search
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
main.go
4
main.go
@@ -406,8 +406,8 @@ func main() {
|
|||||||
var checkActualTime []types.Event
|
var checkActualTime []types.Event
|
||||||
|
|
||||||
// Search for any disconnected messages prior to actual restart time rather than fuzzy time
|
// Search for any disconnected messages prior to actual restart time rather than fuzzy time
|
||||||
log.Printf("Checking host failure list based on actual VM restart time %s\n", vmRestartTime)
|
log.Printf("Checking possible hosts list based on actual VM restart time %s\n", vmRestartTime)
|
||||||
for _, hostEvent := range hostFailures {
|
for _, hostEvent := range possibleHosts {
|
||||||
if hostEvent.CreatedTime.In(location).Before(vmRestartTime) || hostEvent.CreatedTime.In(location).Equal(vmRestartTime) {
|
if hostEvent.CreatedTime.In(location).Before(vmRestartTime) || hostEvent.CreatedTime.In(location).Equal(vmRestartTime) {
|
||||||
checkActualTime = append(checkActualTime, hostEvent)
|
checkActualTime = append(checkActualTime, hostEvent)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user