niceload: under heavy load iostat somehow does not work.

This commit is contained in:
Ole Tange 2012-12-28 12:57:43 +01:00
parent 3dc78c8715
commit a70b9dffaf

View file

@ -786,7 +786,7 @@ sub io_status_linux {
push @iostat, (split(/\s+/,$_))[13]; push @iostat, (split(/\s+/,$_))[13];
} }
my $io = ::max(@iostat); my $io = ::max(@iostat);
return $io/10; return ::undef_as_zero($io)/10;
} }
$::exitsignal = $::exitstatus = 0; # Dummy $::exitsignal = $::exitstatus = 0; # Dummy