We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ff86b commit bdc5ae8Copy full SHA for bdc5ae8
1 file changed
src/Process/CpuCoreCounter.php
@@ -13,8 +13,11 @@ public function getNumberOfCpuCores(): int
13
return $this->count;
14
}
15
16
+ if (!function_exists('proc_open')) {
17
+ return $this->count = 1;
18
+ }
19
+
20
// from brianium/paratest
- $cores = 2;
21
if (@is_file('/proc/cpuinfo')) {
22
// Linux (and potentially Windows with linux sub systems)
23
$cpuinfo = @file_get_contents('/proc/cpuinfo');
@@ -43,7 +46,7 @@ public function getNumberOfCpuCores(): int
43
46
pclose($process);
44
47
45
48
- return $this->count = $cores;
49
+ return $this->count = 2;
50
51
52
0 commit comments