Code

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 09aae7028d24505a6f3cb372860b8eafb8d20a1e..f20901677aa3e72b136a9955a11d69541288090b 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)