diff --git a/Changes b/Changes index c5159c4..8bad084 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,11 @@ +3.N.N - NN-XXX-2013 +==================== +- Fixed error messages about use of uninitialized values in 'system' graph on + BSD systems. +- Fixed error messages about not numeric argument in addition in 'fs' graph on + BSD systems. + + 3.3.1 - 21-Nov-2013 ==================== - Fixed to correctly sanitize the input string in the built-in HTTP server diff --git a/lib/fs.pm b/lib/fs.pm index 057124c..1f4c0e2 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -455,8 +455,8 @@ sub fs_update { } elsif($config->{os} eq "OpenBSD" || $config->{os} eq "NetBSD") { @tmp = split(' ', `iostat -DI | tail -1`); ($read_cnt, $read_sec) = @tmp; - $write_cnt = ""; - $write_sec = ""; + $write_cnt = 0; + $write_sec = 0; chomp($read_sec); $read_sec = int($read_sec); } diff --git a/lib/system.pm b/lib/system.pm index 58d2c70..3cf575f 100644 --- a/lib/system.pm +++ b/lib/system.pm @@ -108,22 +108,22 @@ sub system_update { my $rrd = $config->{base_lib} . $package . ".rrd"; my $system = $config->{system}; - my $load1; - my $load5; - my $load15; - my $nproc; - my $npslp; - my $nprun; - my $npwio; - my $npzom; - my $npstp; - my $npswp; - my $mtotl; - my $mbuff; - my $mcach; - my $mfree; - my $macti; - my $minac; + my $load1 = 0; + my $load5 = 0; + my $load15 = 0; + my $nproc = 0; + my $npslp = 0; + my $nprun = 0; + my $npwio = 0; + my $npzom = 0; + my $npstp = 0; + my $npswp = 0; + my $mtotl = 0; + my $mbuff = 0; + my $mcach = 0; + my $mfree = 0; + my $macti = 0; + my $minac = 0; my $val01 = 0; my $val02 = 0; my $val03 = 0;