summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1bbb384)
raw | patch | inline | side by side (parent: 1bbb384)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 8 Nov 2014 23:16:11 +0000 (00:16 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 8 Nov 2014 23:16:11 +0000 (00:16 +0100) |
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:
"<timstamp>:<value>".
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"
"ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432:932"
Meaning the value actually stored, and later returned by redis is:
"<timstamp>:<value>".
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 | patch | blob | history |
diff --git a/src/write_redis.c b/src/write_redis.c
index 58f2cae3e28dc02b3a9fad6bcbb80171230631a3..1d9ec27c0b60bf43900e9504e4271ce12a623a70 100644 (file)
--- a/src/write_redis.c
+++ b/src/write_redis.c
} \
} 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)