write_redis: Fix timestamp sent to Redis.
authorFlorian Forster <octo@collectd.org>
Fri, 22 May 2015 09:29:12 +0000 (11:29 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 22 May 2015 09:29:12 +0000 (11:29 +0200)
src/write_redis.c

index 09aae70..f209016 100644 (file)
@@ -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)