summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-04-28 17:04:52 +0000
committerGreg Sabino Mullane2009-04-28 17:04:52 +0000
commitf6119465dda97ef8ed45fbd4b3569003cf259149 (patch)
treeb1f19908f3a6d9f417cbe69fed79b350756cad9d /check_postgres.pl
parent67fa6d1401e20abe5d4c7de0a5950a11d3837369 (diff)
Force query_runtime output to normal non-exponential numbers.
Thanks to Josh Tolley for finding.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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;