From: Florian Forster Date: Fri, 8 Aug 2014 07:36:10 +0000 (+0200) Subject: mysql plugin: Remove TODO comment, improve line wrapping. X-Git-Tag: collectd-5.5.0~229^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75c6aa9fd431f25999ece015eeee6db32ac3d96a;p=collectd.git mysql plugin: Remove TODO comment, improve line wrapping. --- diff --git a/src/mysql.c b/src/mysql.c index 0f8d5a64..7d5eddd1 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -38,8 +38,6 @@ #include #endif -/* TODO: Understand `Select_*' and possibly do that stuff as well.. */ - struct mysql_database_s /* {{{ */ { char *instance; @@ -738,18 +736,14 @@ static int mysql_read (user_data_t *ud) else if (strcmp (key, "Innodb_rows_updated") == 0) counter_submit ("mysql_innodb_rows", "updated", val, db); } - else if (strncmp (key, "Select_", - strlen ("Select_")) == 0) + else if (strncmp (key, "Select_", strlen ("Select_")) == 0) { - counter_submit ("mysql_select", - key + strlen ("Select_"), + counter_submit ("mysql_select", key + strlen ("Select_"), val, db); } - else if (strncmp (key, "Sort_", - strlen ("Sort_")) == 0) + else if (strncmp (key, "Sort_", strlen ("Sort_")) == 0) { - counter_submit ("mysql_sort", - key + strlen ("Sort_"), + counter_submit ("mysql_sort", key + strlen ("Sort_"), val, db); } }