projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8608851
)
amqp plugin: Adapt to the new syntax of "format_json_value_list".
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 4 Aug 2010 15:59:31 +0000
(17:59 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 4 Aug 2010 15:59:31 +0000
(17:59 +0200)
src/amqp.c
patch
|
blob
|
history
diff --git
a/src/amqp.c
b/src/amqp.c
index
1767b85
..
5506635
100644
(file)
--- 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");