From 6725a91fd6be18b6f3475fc0eeccfb6424a73f5c Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Sun, 9 Nov 2014 00:16:11 +0100 Subject: [PATCH] write_redis: re-add colon dropped in b7984797 When running f3706b0b87, the following command gets sent to redis: "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432:932" Meaning the value actually stored, and later returned by redis is: ":". b7984797 accidentally dropped the comma separating the timestamp and the value, which leads the plugin to store a somewhat confusing value in redis: "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432932" --- src/write_redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_redis.c b/src/write_redis.c index 58f2cae3..1d9ec27c 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -84,7 +84,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */ } \ } while (0) - APPEND ("%lu", (unsigned long) vl->time); + APPEND ("%lu:", (unsigned long) vl->time); for (i = 0; i < ds->ds_num; i++) { if (ds->ds[i].type == DS_TYPE_COUNTER) -- 2.30.2