From 89fce2fc8c41c97560928ef2b22cd60a40320f5b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 31 May 2016 21:09:43 +0200 Subject: txn_idle: if seconds are -0, use 0 Close: #75 --- check_postgres.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'check_postgres.pl') 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; -- cgit v1.2.3