Commit Diff
--- sysinfo.pl +++ sysinfo.pl @@ -902,7 +902,7 @@ sub read_first_line { sub detect_cpu_count { my $fallback = shift; - my $output = run_command_scalar('getconf _NPROCESSORS_CONF'); + my $output = run_command_scalar('getconf _NPROCESSORS_CONF 2>/dev/null'); if ( defined $output && $output =~ /^\d+$/ && $output > 0 ) { return $output; }
