We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1513a commit 6365bc3Copy full SHA for 6365bc3
composer.json
@@ -15,7 +15,7 @@
15
],
16
"require": {
17
"php": "^8.1",
18
- "fidry/cpu-core-counter": "^0.5.0 || ^1.0",
+ "fidry/cpu-core-counter": "^1.2",
19
"nikic/iter": "^2.2",
20
"psr/log": "^1.1 || ^2.0 || ^3.0",
21
"symfony/console": "^6.4.15 || ^7.2",
src/Process/CpuCoreCounter.php
@@ -46,7 +46,7 @@ public static function getNumberOfCpuCores(): int
46
}
47
48
try {
49
- self::$count = (new FidryCpuCoreCounter())->getCount();
+ self::$count = (new FidryCpuCoreCounter())->getAvailableForParallelisation()->availableCpus;
50
} catch (NumberOfCpuCoreNotFound) {
51
self::$count = 1;
52
0 commit comments