Skip to content

Commit 2f649fa

Browse files
committed
Windows - use logical CPU cores count
1 parent dcc403f commit 2f649fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/AnalyseApplication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private function getNumberOfCpuCores(): int
241241

242242
if (\DIRECTORY_SEPARATOR === '\\') {
243243
// Windows
244-
$process = @popen('wmic cpu get NumberOfCores', 'rb');
244+
$process = @popen('wmic cpu get NumberOfLogicalProcessors', 'rb');
245245
if ($process !== false) {
246246
fgets($process);
247247
$cores = (int) fgets($process);

0 commit comments

Comments
 (0)