From bb732c7a5db8106c998d954677f24d111d62af58 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 20 Oct 2014 16:49:04 +0200 Subject: [PATCH] mysql: correct 2 data types in innodb counters Thanks to @ekilby for spotting this mistake ! Fixes #757 --- src/mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mysql.c b/src/mysql.c index 7d5eddd1..f5ae1ad2 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -688,7 +688,7 @@ static int mysql_read (user_data_t *ud) else if (strcmp (key, "Innodb_buffer_pool_pages_dirty") == 0) gauge_submit ("mysql_bpool_pages", "dirty", val, db); else if (strcmp (key, "Innodb_buffer_pool_pages_flushed") == 0) - counter_submit ("mysql_bpool_counters", "flushed", val, db); + counter_submit ("mysql_bpool_pages", "flushed", val, db); else if (strcmp (key, "Innodb_buffer_pool_pages_free") == 0) gauge_submit ("mysql_bpool_pages", "free", val, db); else if (strcmp (key, "Innodb_buffer_pool_pages_misc") == 0) @@ -716,7 +716,7 @@ static int mysql_read (user_data_t *ud) else if (strcmp (key, "Innodb_data_reads") == 0) counter_submit ("mysql_innodb_data", "reads", val, db); else if (strcmp (key, "Innodb_data_writes") == 0) - counter_submit ("mysql_bpool_counters", "writes", val, db); + counter_submit ("mysql_innodb_data", "writes", val, db); else if (strcmp (key, "Innodb_data_written") == 0) counter_submit ("mysql_innodb_data", "written", val, db); -- 2.11.0