projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9382ca1
)
mqtt plugin: Send only the acutally used part of the payload buffer.
author
Florian Forster
<octo@collectd.org>
Fri, 21 Nov 2014 15:03:22 +0000
(16:03 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 6 Jul 2015 12:07:11 +0000
(14:07 +0200)
src/mqtt.c
patch
|
blob
|
history
diff --git
a/src/mqtt.c
b/src/mqtt.c
index
3142bf3
..
bfa2fdb
100644
(file)
--- a/
src/mqtt.c
+++ b/
src/mqtt.c
@@
-287,7
+287,7
@@
static int mqtt_write (const data_set_t *ds, const value_list_t *vl,
return (status);
}
- status = publish (conf, topic, payload, s
izeof (payload)
);
+ status = publish (conf, topic, payload, s
trlen (payload) + 1
);
if (status != 0)
{
ERROR ("mqtt plugin: publish failed: %s", mosquitto_strerror (status));