Skip to content

Commit 95290f5

Browse files
committed
Revert temp-test code
1 parent cf5f6fc commit 95290f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AsyncTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ private function hasTimedOut(): bool
333333
$timeElapsed = microtime(true) - $this->laravelStartVal;
334334
// temp let runner print me the stats
335335
fwrite(STDERR, "microtime elapsed $timeElapsed" . PHP_EOL);
336-
if ($timeElapsed + self::TIME_EPSILON >= $this->timeLimit) {
336+
if ($timeElapsed >= $this->timeLimit) {
337337
// yes
338338
return true;
339339
}
@@ -342,7 +342,7 @@ private function hasTimedOut(): bool
342342
// because there will always be a small but significant delay between `timeout` start time and PHP start time.
343343
// in this case, we will look at the pre-determined timer PID to ask about the actual elapsed time through the kernel's proc data
344344
// this method should be slower than the microtime method
345-
if (false && OsInfo::isUnix()) {
345+
if (OsInfo::isUnix()) {
346346
// get time elapsed in seconds
347347
$tempOut = exec("ps -p {$this->timerProcID} -o etimes=");
348348
// this must exist (we are still running!), otherwise it indicates the kernel is broken and we can go grab a chicken dinner instead

0 commit comments

Comments
 (0)