From: Marc Fournier Date: Mon, 20 Oct 2014 14:49:04 +0000 (+0200) Subject: mysql: correct 2 data types in innodb counters X-Git-Tag: collectd-5.5.0~172 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bb732c7a5db8106c998d954677f24d111d62af58;p=collectd.git mysql: correct 2 data types in innodb counters Thanks to @ekilby for spotting this mistake ! Fixes #757 --- 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);