Print seconds to avoid unreadable minutes

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
This commit is contained in:
whitewindmills 2024-08-05 19:04:34 +08:00
parent 8b4e006f03
commit 4af54fb68b
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ func (c *CRBApplicationFailoverController) Reconcile(ctx context.Context, req co
return controllerruntime.Result{}, err
}
if retryDuration > 0 {
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
}
return controllerruntime.Result{}, nil

View File

@ -84,7 +84,7 @@ func (c *RBApplicationFailoverController) Reconcile(ctx context.Context, req con
return controllerruntime.Result{}, err
}
if retryDuration > 0 {
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
}
return controllerruntime.Result{}, nil