From 5a5ed3101e10ae8431fa03c58cdd3726a98b8ac7 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 22 Sep 2008 10:03:00 -0400 Subject: [PATCH] MRTG prefers a 0 a second arg, even when it arrives as undef. Thanks to Andras Fabian for catching this. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index c85b9d47c..3e5749eab 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -358,7 +358,7 @@ sub do_mrtg { ## Hashref of info to pass out for MRTG or stat my $arg = shift; my $one = $arg->{one} || 0; - my $two = $arg->{two} || ''; + my $two = $arg->{two} || 0; if ($SIMPLE) { $one = $two if (length $two and $two > $one); print "$one\n"; -- 2.39.5