diff options
-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; |