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: https://git.verplant.org/?a=commitdiff_plain;h=a3b8297ca4e9b3f5e3652a347333526546306041;p=collectd.git removed separator between prefix and the rest of the key --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 874c16c1..ab3bbf8a 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 1bd9b20b..dfa031c0 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));