X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmysql.c;h=f4ad01c685c48e0e6b123c0f49563558bf228081;hb=5e83b286691cd53454a3864af3b01451a8ff1946;hp=1ca3b484ce6d2ebadc490196ed64260140c7d18c;hpb=a5177bd853eedbe69d87869316093a0e9526e931;p=collectd.git diff --git a/src/mysql.c b/src/mysql.c index 1ca3b484..f4ad01c6 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -321,11 +321,11 @@ static void submit (const char *type, const char *type_instance, } /* submit */ static void counter_submit (const char *type, const char *type_instance, - counter_t value, mysql_database_t *db) + derive_t value, mysql_database_t *db) { value_t values[1]; - values[0].counter = value; + values[0].derive = value; submit (type, type_instance, values, STATIC_ARRAY_SIZE (values), db); } /* void counter_submit */ @@ -347,12 +347,12 @@ static void derive_submit (const char *type, const char *type_instance, submit (type, type_instance, values, STATIC_ARRAY_SIZE (values), db); } /* void derive_submit */ -static void traffic_submit (counter_t rx, counter_t tx, mysql_database_t *db) +static void traffic_submit (derive_t rx, derive_t tx, mysql_database_t *db) { value_t values[2]; - values[0].counter = rx; - values[1].counter = tx; + values[0].derive = rx; + values[1].derive = tx; submit ("mysql_octets", NULL, values, STATIC_ARRAY_SIZE (values), db); } /* void traffic_submit */