From d4da18e869b254d564b37aa1f984ac4f7ef679fa Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 30 Jun 2024 22:32:17 +0800 Subject: [PATCH] Disable getCpuCount log --- src/SPC/builder/macos/SystemUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/builder/macos/SystemUtil.php b/src/SPC/builder/macos/SystemUtil.php index 22d7847e..0c2d4560 100644 --- a/src/SPC/builder/macos/SystemUtil.php +++ b/src/SPC/builder/macos/SystemUtil.php @@ -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'); }