mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Disable getCpuCount log
This commit is contained in:
parent
334a3bdf5d
commit
d4da18e869
@ -20,7 +20,7 @@ class SystemUtil
|
||||
*/
|
||||
public static function getCpuCount(): int
|
||||
{
|
||||
[$ret, $output] = shell()->execWithResult('sysctl -n hw.ncpu');
|
||||
[$ret, $output] = shell()->execWithResult('sysctl -n hw.ncpu', false);
|
||||
if ($ret !== 0) {
|
||||
throw new RuntimeException('Failed to get cpu count');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user