Skip to content

Commit

Permalink
Windows - use logical CPU cores count
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 11, 2020
1 parent dcc403f commit 2f649fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/AnalyseApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private function getNumberOfCpuCores(): int

if (\DIRECTORY_SEPARATOR === '\\') {
// Windows
$process = @popen('wmic cpu get NumberOfCores', 'rb');
$process = @popen('wmic cpu get NumberOfLogicalProcessors', 'rb');
if ($process !== false) {
fgets($process);
$cores = (int) fgets($process);
Expand Down

0 comments on commit 2f649fa

Please sign in to comment.