Skip to content

Commit 6fe7c6c

Browse files
committed
Stabilize timeout checking
1 parent 6837265 commit 6fe7c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ private function hasTimedOut(): bool
359359
// we believe there is a seemingly unexplainable behavior that results in the etimes to be off-by-1 when it would be terminated by `timeout`
360360
// e.g., when killed by `timeout` with time limit = 7, the etime might actually be 6.999999... and it gets displayed as 6, thus failing the check
361361
// so, just to be sure, we will make it timeout when killed at the last second to the time limit
362-
return $timeElapsed + 1 >= $this->timeLimit;
362+
return $timeElapsed >= $this->timeLimit;
363363
}
364364
}
365365

0 commit comments

Comments
 (0)