Skip to content

Commit 084a0a4

Browse files
authored
Fix elapsed time format for result cache restore time
1 parent 0401189 commit 084a0a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Analyser/ResultCache/ResultCacheManager.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
use function is_file;
3838
use function ksort;
3939
use function microtime;
40-
use function round;
4140
use function sha1_file;
4241
use function sort;
4342
use function sprintf;
@@ -297,7 +296,7 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
297296
if ($output->isVeryVerbose()) {
298297
$elapsed = microtime(true) - $startTime;
299298
$elapsedString = $elapsed > 5
300-
? sprintf(' in %f seconds', round($elapsed, 1))
299+
? sprintf(' in %.1f seconds', $elapsed)
301300
: '';
302301

303302
$output->writeLineFormatted(sprintf(

0 commit comments

Comments
 (0)