From: Christoph Berg Date: Tue, 31 May 2016 19:09:43 +0000 (+0200) Subject: txn_idle: if seconds are -0, use 0 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=89fce2fc8c41c97560928ef2b22cd60a40320f5b;p=check_postgres.git txn_idle: if seconds are -0, use 0 Close: #75 --- 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;