Skip to content

Commit

Permalink
informant: Bugfix - stop immediate retry
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnoff committed Feb 14, 2023
1 parent 18d9d04 commit 3dcb24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vm-informant/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func runRestartOnFailure(args []string, cleanupHooks []func()) {
dur := time.Since(startTime)
if dur < minWaitDuration {
klog.Infof("vm-informant %s. respecting minimum wait of %s", exitMode, minWaitDuration)
time.Sleep(dur - minWaitDuration)
time.Sleep(minWaitDuration - dur)
} else {
klog.Infof("vm-informant restarting immediately")
}
Expand Down

0 comments on commit 3dcb24a

Please sign in to comment.