Skip to content

Commit b6d2684

Browse files
committed
fix: tmp fix for clock time < cpu time (#156)
1 parent 2b42c8b commit b6d2684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worker/waiter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ type waiter struct {
1919
func (w *waiter) Wait(ctx context.Context, u envexec.Process) bool {
2020
clockTimeLimit := w.clockTimeLimit
2121
timeLimit := w.timeLimit
22-
if clockTimeLimit < w.timeLimit {
23-
clockTimeLimit = w.timeLimit
22+
if clockTimeLimit == 0 {
23+
clockTimeLimit = timeLimit
2424
}
2525

2626
start := time.Now()

0 commit comments

Comments
 (0)