Skip to content

Commit

Permalink
Display correct elapsed time with Roadrunner (#865)
Browse files Browse the repository at this point in the history
* $elapsed is always in ms

* Revert "$elapsed is always in ms"

This reverts commit 795238d.

* Return elapsed as is if integer
  • Loading branch information
Joel-Jensen authored Mar 27, 2024
1 parent f380335 commit a2436fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/StartRoadRunnerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ protected function calculateElapsedTime(string $elapsed): float
return mb_substr($elapsed, 0, -2) * 0.001;
}

if (filter_var($elapsed, FILTER_VALIDATE_INT) !== false) {
return $elapsed;
}

return (float) $elapsed * 1000;
}

Expand Down

0 comments on commit a2436fd

Please sign in to comment.