Commit Diff


commit - f762adde2310f20af67f13574b131d9f0aa12f96
commit + 64f346d50926b5d9473a31d58031572fab73c51f
blob - 5ef03e78c526b6f74d04115489053d78e1a233f1
blob + 0e828eb7f0d9f8f97a99b8ce8af3e9a6ba875a72
--- 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;
     }