summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 8704fc212..01fcdfcf8 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -7961,6 +7961,7 @@ sub check_txn_idle {
## Extract the seconds to avoid typing out the hash each time
my $max = $maxr->{seconds};
+ $max = 0 if $max eq '-0';
## See if we have a minimum number of matches
my $base_count = $wcount || $ccount;