From: Sebastian Pfahl Date: Mon, 15 Jun 2015 14:07:57 +0000 (+0000) Subject: removed separator between prefix and the rest of the key X-Git-Tag: collectd-5.6.0~672^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1082%2Fhead;p=thirdparty%2Fcollectd.git removed separator between prefix and the rest of the key --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 874c16c11..ab3bbf8a4 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -7491,7 +7491,7 @@ Synopsis: Values are submitted to I, using the metric name as the key, and the timestamp as the score. Retrieving a date range can then be done using the C I command. Additionnally, all the identifiers of these -I are kept in a I called C or C if a Prefix was specified and can be +I are kept in a I called C or C if a Prefix was specified and can be retrieved using the C I command. See L and L for details. diff --git a/src/write_redis.c b/src/write_redis.c index 1bd9b20be..dfa031c02 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -72,7 +72,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */ ssnprintf (key, sizeof (key), "collectd/%s", ident); } else { - ssnprintf (key, sizeof (key), "%s/collectd/%s", node->prefix, ident); + ssnprintf (key, sizeof (key), "%s/%s", node->prefix, ident); } ssnprintf (time, sizeof (time), "%.9f", CDTIME_T_TO_DOUBLE(vl->time));