summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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});