From a70b9dffaf21b6f8d5a981aabe82d6dfae736cf7 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Fri, 28 Dec 2012 12:57:43 +0100 Subject: [PATCH] niceload: under heavy load `iostat` somehow does not work. --- src/niceload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/niceload b/src/niceload index d8ac9fa9..c12d08eb 100755 --- a/src/niceload +++ b/src/niceload @@ -786,7 +786,7 @@ sub io_status_linux { push @iostat, (split(/\s+/,$_))[13]; } my $io = ::max(@iostat); - return $io/10; + return ::undef_as_zero($io)/10; } $::exitsignal = $::exitstatus = 0; # Dummy