diff --git a/check_postgres.pl b/check_postgres.pl index be5ccdb..2e60e81 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -8759,6 +8759,7 @@ sub check_txn_idle { ## Keep track of the longest overall time $maxr = $r if $r->{seconds} >= $maxr->{seconds}; + $maxr = 0 if $r->{seconds} >= $maxr->{seconds} and $r->{seconds} eq '-0'; ## if epoch rounds to -0, just use 0 $count++; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: