fixed a bad numeric variable initialization in 'fs' on FreeBSD systems

This commit is contained in:
Jordi Sanfeliu 2014-01-22 15:52:42 +01:00
parent ebac0ddc3f
commit 3c8c924dba
1 changed files with 2 additions and 2 deletions

View File

@ -468,8 +468,8 @@ sub fs_update {
} else {
@tmp = split(' ', `iostat -dI | tail -1`);
(undef, $read_cnt, $read_sec) = @tmp;
$write_cnt = "";
$write_sec = "";
$write_cnt = 0;
$write_sec = 0;
chomp($read_sec);
$read_sec = int($read_sec);
}