Skip to content

Commit a2436fd

Browse files
authored
Display correct elapsed time with Roadrunner (#865)
* $elapsed is always in ms * Revert "$elapsed is always in ms" This reverts commit 795238d. * Return elapsed as is if integer
1 parent f380335 commit a2436fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/StartRoadRunnerCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ protected function calculateElapsedTime(string $elapsed): float
258258
return mb_substr($elapsed, 0, -2) * 0.001;
259259
}
260260

261+
if (filter_var($elapsed, FILTER_VALIDATE_INT) !== false) {
262+
return $elapsed;
263+
}
264+
261265
return (float) $elapsed * 1000;
262266
}
263267

0 commit comments

Comments
 (0)