Disable getCpuCount log

This commit is contained in:
crazywhalecc 2024-06-30 22:32:17 +08:00 committed by Jerry Ma
parent 334a3bdf5d
commit d4da18e869

View File

@ -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');
}