Skip to content

Commit

Permalink
last commit introduced a bug in runtimelimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
npayne committed Mar 19, 2023
1 parent 5fcdfe1 commit 70bd021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v4/runtime_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (r *RuntimeLimiter) Run(allowance_ms float64, bonsuTime bool) (remaining_ms
logRuntimeLimiter("scheduled: %t", scheduled)
}
if (!hasRunBefore && !hasSchedule) ||
(durationHasElapsed && scheduled && !oppSkip) {
(durationHasElapsed && (!hasSchedule || scheduled) && !oppSkip) {

t0 := time.Now()
// note that we start lastrun from the moment the function starts, since
Expand Down

0 comments on commit 70bd021

Please sign in to comment.