Skip to content

Commit

Permalink
Merge pull request #128 from woocommerce/24-01/tweak
Browse files Browse the repository at this point in the history
Minor tweak
  • Loading branch information
Luc45 authored Feb 13, 2024
2 parents d12462e + bcffaf2 commit 694641c
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 694641c

Please sign in to comment.