From: Greg Sabino Mullane Date: Tue, 28 Apr 2009 17:04:52 +0000 (-0400) Subject: Force query_runtime output to normal non-exponential numbers. X-Git-Tag: 2.9.0~50 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f6119465dda97ef8ed45fbd4b3569003cf259149;p=check_postgres.git Force query_runtime output to normal non-exponential numbers. Thanks to Josh Tolley for finding. --- diff --git a/check_postgres.pl b/check_postgres.pl index 8581d35d9..3855cdc8d 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3519,7 +3519,7 @@ sub check_query_runtime { add_unknown msg('invalid-query', $db->{slurp}); next; } - my $totalseconds = $1 / 1000.0; + my $totalseconds = sprintf '%.2f', $1 / 1000.0; if ($MRTG) { $stats{$db->{dbname}} = $totalseconds; next;