From 5e70abb079048cd9be91a9fef020ae39f4ef3b29 Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Mon, 7 Mar 2011 11:54:57 -0600 Subject: handle undef percents in check_fsm_relations --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') 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}); -- cgit v1.2.3