From: Andy Lester Date: Mon, 7 Mar 2011 17:54:57 +0000 (-0600) Subject: handle undef percents in check_fsm_relations X-Git-Tag: 2.18.0~71 X-Git-Url: http://git.postgresql.org/gitweb/static/main.js?a=commitdiff_plain;h=5e70abb079048cd9be91a9fef020ae39f4ef3b29;p=check_postgres.git handle undef percents in check_fsm_relations --- diff --git a/check_postgres.pl b/check_postgres.pl index 9e9e31cde..ead4b8eb2 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3878,7 +3878,7 @@ FROM (SELECT for $db (@{$info->{db}}) { for my $r (@{$db->{slurp}}) { - my ($max,$cur,$percent) = ($r->{maxx},$r->{cur},$r->{percent}); + my ($max,$cur,$percent) = ($r->{maxx},$r->{cur},$r->{percent}||0); $MRTG and do_mrtg({one => $percent, two => $cur});