mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Disable getCpuCount log
This commit is contained in:
@@ -20,7 +20,7 @@ class SystemUtil
|
|||||||
*/
|
*/
|
||||||
public static function getCpuCount(): int
|
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) {
|
if ($ret !== 0) {
|
||||||
throw new RuntimeException('Failed to get cpu count');
|
throw new RuntimeException('Failed to get cpu count');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user