File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments