Skip to content

Commit

Permalink
fix golint
Browse files Browse the repository at this point in the history
  • Loading branch information
wu8685 committed Aug 31, 2023
1 parent 44e246b commit 8f33df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/utils/podopslifecycle/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func AllowOps(adapter LifecycleAdapter, operationDelaySeconds int32, obj client.
}

startedTime := time.Unix(0, startedTimestamp)
duration := time.Now().Sub(startedTime)
duration := time.Since(startedTime)
delay := time.Duration(operationDelaySeconds) * time.Second
if duration < delay {
return delay - duration, started
Expand Down

0 comments on commit 8f33df2

Please sign in to comment.