From: Florian Forster Date: Wed, 4 Aug 2010 15:59:31 +0000 (+0200) Subject: amqp plugin: Adapt to the new syntax of "format_json_value_list". X-Git-Tag: collectd-5.0.0-beta0~28^2~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=41c8215f02d83d1f90013e33c3b61b70443a32e7;p=collectd.git amqp plugin: Adapt to the new syntax of "format_json_value_list". --- diff --git a/src/amqp.c b/src/amqp.c index 1767b85f..55066351 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -144,7 +144,9 @@ static int amqp_write(const data_set_t *ds, const value_list_t *vl, user_data_t bfree = sizeof(buffer); bfill = 0; format_json_initialize(buffer, &bfill, &bfree); - format_json_value_list(buffer, &bfill, &bfree, ds, vl); + /* TODO: Possibly add a config option "StoreRates" and pass the value along here. */ + format_json_value_list(buffer, &bfill, &bfree, ds, vl, + /* rates = */ 0); format_json_finalize(buffer, &bfill, &bfree); props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG; props.content_type = amqp_cstring_bytes("application/json");