Skip to content

Commit 736a94d

Browse files
committed
Fix verbose output for cpu cores
1 parent 5f49473 commit 736a94d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Parallel/Scheduler.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ public function print(Output $output): void
6565
[$cpuCores, $filesCount, $jobsCount, $usedNumberOfProcesses] = $this->storedData;
6666

6767
$output->writeLineFormatted('<info>Parallel processing scheduler:</info>');
68-
$output->writeLineFormatted(sprintf(
69-
'# of detected CPU %s: %s%d',
70-
$cpuCores === 1 ? 'core' : 'cores',
71-
$cpuCores === 1 ? '' : ' ',
72-
$cpuCores,
73-
));
68+
$output->writeLineFormatted(sprintf('# of detected CPU cores: %d', $cpuCores));
7469
$output->writeLineFormatted(sprintf('# of analysed files: %d', $filesCount));
7570
$output->writeLineFormatted(sprintf('# of jobs: %d', $jobsCount));
7671
$output->writeLineFormatted(sprintf('# of spawned processes: %d', $usedNumberOfProcesses));

0 commit comments

Comments
 (0)