From: Marc Fournier Date: Sat, 8 Nov 2014 23:16:11 +0000 (+0100) Subject: write_redis: re-add colon dropped in b7984797 X-Git-Tag: collectd-5.5.0~139^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e247824272066b51d5b672f053c138c6b30ab865;p=collectd.git 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" --- diff --git a/src/write_redis.c b/src/write_redis.c index 1b127451..5ed95fb9 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -86,7 +86,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)