Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 593bdec

Browse files
committed
Fix for bug #1264353 Non-integer poller errors for MySQL Query Response Time
1 parent 1585f07 commit 593bdec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cacti/scripts/ss_get_mysql_stats.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function ss_get_mysql_stats( $options ) {
485485
debug('Getting query time histogram');
486486
$i = 0;
487487
$result = run_query(
488-
"SELECT `count`, total * 1000000 AS total "
488+
"SELECT `count`, ROUND(total * 1000000) AS total "
489489
. "FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME "
490490
. "WHERE `time` <> 'TOO LONG'",
491491
$conn);

0 commit comments

Comments
 (0)