projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c48e21
)
riemann plugin: Fix two minor bugs.
author
Florian Forster
<octo@collectd.org>
Fri, 11 Jan 2013 10:52:14 +0000
(11:52 +0100)
committer
Florian Forster
<octo@collectd.org>
Fri, 11 Jan 2013 10:52:14 +0000
(11:52 +0100)
src/riemann.c
patch
|
blob
|
history
diff --git
a/src/riemann.c
b/src/riemann.c
index
12f9953
..
315a52d
100644
(file)
--- a/
src/riemann.c
+++ b/
src/riemann.c
@@
-333,7
+333,7
@@
static Event *riemann_value_to_protobuf (struct riemann_host const *host, /* {{{
/* TODO: Use FORMAT_VL() here. */
ssnprintf (service_buffer, sizeof(service_buffer),
"%s-%s-%s-%s-%s", vl->plugin, vl->plugin_instance,
/* TODO: Use FORMAT_VL() here. */
ssnprintf (service_buffer, sizeof(service_buffer),
"%s-%s-%s-%s-%s", vl->plugin, vl->plugin_instance,
- vl->type, vl->type_instance, ds->ds[i].name);
+ vl->type, vl->type_instance, ds->ds[i
ndex
].name);
event->service = strdup (service_buffer);
DEBUG ("riemann plugin: Successfully created protobuf for metric: "
event->service = strdup (service_buffer);
DEBUG ("riemann plugin: Successfully created protobuf for metric: "
@@
-373,7
+373,7
@@
static Msg *riemann_value_list_to_protobuf (struct riemann_host const *host, /*
{
msg->events[i] = riemann_value_to_protobuf (host, ds, vl,
(int) i, /* rates = */ NULL);
{
msg->events[i] = riemann_value_to_protobuf (host, ds, vl,
(int) i, /* rates = */ NULL);
- if (msg->events[i])
+ if (msg->events[i]
== NULL
)
{
riemann_msg_protobuf_free (msg);
return (NULL);
{
riemann_msg_protobuf_free (msg);
return (NULL);