Hide error output
authorJamie Cameron <jcameron@webmin.com>
Sun, 9 May 2010 20:30:19 +0000 (13:30 -0700)
committerJamie Cameron <jcameron@webmin.com>
Sun, 9 May 2010 20:30:19 +0000 (13:30 -0700)
system-status/system-status-lib.pl

index 1763c91..a7b4398 100755 (executable)
@@ -62,7 +62,7 @@ $info->{'drivetemps'} = \@drive if (@drive);
 
 # IO input and output
 if ($gconfig{'os_type'} =~ /-linux$/) {
-       local $out = &backquote_command("vmstat 1 2");
+       local $out = &backquote_command("vmstat 1 2 2>/dev/null");
        if (!$?) {
                local @lines = split(/\r?\n/, $out);
                local @w = split(/\s+/, $lines[$#lines]);