projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/daemon/collectd.c: Fix implementation of the -B option.
[collectd.git]
/
src
/
write_redis.c
diff --git
a/src/write_redis.c
b/src/write_redis.c
index
7be236a
..
5a029de
100644
(file)
--- a/
src/write_redis.c
+++ b/
src/write_redis.c
@@
-71,8
+71,7
@@
static int wr_write(const data_set_t *ds, /* {{{ */
if (status != 0)
return status;
snprintf(key, sizeof(key), "%s%s",
if (status != 0)
return status;
snprintf(key, sizeof(key), "%s%s",
- (node->prefix != NULL) ? node->prefix : REDIS_DEFAULT_PREFIX,
- ident);
+ (node->prefix != NULL) ? node->prefix : REDIS_DEFAULT_PREFIX, ident);
snprintf(time, sizeof(time), "%.9f", CDTIME_T_TO_DOUBLE(vl->time));
value_size = sizeof(value);
snprintf(time, sizeof(time), "%.9f", CDTIME_T_TO_DOUBLE(vl->time));
value_size = sizeof(value);
@@
-221,10
+220,11
@@
static int wr_config_node(oconfig_item_t *ci) /* {{{ */
snprintf(cb_name, sizeof(cb_name), "write_redis/%s", node->name);
snprintf(cb_name, sizeof(cb_name), "write_redis/%s", node->name);
- status = plugin_register_write(
- cb_name, wr_write, &(user_data_t){
- .data = node, .free_func = wr_config_free,
- });
+ status =
+ plugin_register_write(cb_name, wr_write,
+ &(user_data_t){
+ .data = node, .free_func = wr_config_free,
+ });
}
if (status != 0)
}
if (status != 0)