Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Feb 12, 2024
1 parent d12462e commit bcffaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _tests/ParallelOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function updateProcessStatus( Process $process, $output ) {
}

protected function formatStatusWithTime( $taskId, $status ) {
$elapsed = microtime( true ) - $this->startTimes[ $taskId ];
$elapsed = max( 0, intval( microtime( true ) - $this->startTimes[ $taskId ] ) );
$minutes = floor( $elapsed / 60 );
$seconds = str_pad( (int) ceil( $elapsed % 60 ), 2, '0', STR_PAD_LEFT );

Expand Down

0 comments on commit bcffaf2

Please sign in to comment.