[collectd] write_mongodb bug ? Always the same date ...

Jeremy SALMON contact at jeremysalmon.me
Mon May 7 23:23:43 CEST 2012

I just make a patch to my problem of date with write_mongodb.

I update write_mongodb.c

diff write_mongodb.c write_mongodb_orig.c

<   time_t seconds;
<   seconds = time (NULL);
<   /*bson_append_date (ret, "time", (bson_date_t) CDTIME_T_TO_MS
<   bson_append_time_t (ret, "time",seconds);
>   bson_append_date (ret, "time", (bson_date_t) CDTIME_T_TO_MS (vl->time));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120507/5a4c989b/attachment.html>

More information about the collectd mailing list