diff options
author | Christoph Berg | 2016-05-31 19:09:43 +0000 |
---|---|---|
committer | Christoph Berg | 2016-05-31 19:09:43 +0000 |
commit | 89fce2fc8c41c97560928ef2b22cd60a40320f5b (patch) | |
tree | 71c07feee10788388be6fcf45bb641e2931637ac /check_postgres.pl | |
parent | 6c17c3a11ac6cadc5b3880937a5871d148d60a30 (diff) |
txn_idle: if seconds are -0, use 0
Close: #75
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 1 |
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; |