From: Florian Forster Date: Fri, 22 May 2015 09:29:12 +0000 (+0200) Subject: write_redis: Fix timestamp sent to Redis. X-Git-Tag: collectd-5.5.0~12^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=35dfbf6616169e6f0fddb2edd0ccb53b6a753da7;p=collectd.git write_redis: Fix timestamp sent to Redis. --- diff --git a/src/write_redis.c b/src/write_redis.c index 09aae702..f2090167 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 ("%.3f:", CDTIME_T_TO_DOUBLE (vl->time)); for (i = 0; i < ds->ds_num; i++) { if (ds->ds[i].type == DS_TYPE_COUNTER)