summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e61872d)
raw | patch | inline | side by side (parent: e61872d)
author | Florian Forster <octo@huhu.verplant.org> | |
Thu, 7 Jul 2011 14:59:13 +0000 (16:59 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 7 Jul 2011 14:59:13 +0000 (16:59 +0200) |
Users should get epoch, not our internal format.
src/utils_format_json.c | patch | blob | history |
index 65c886b6fc28239183be31d8a10a896ec5f7800c..2a5526b29d2f77833c1d455a1b3fd10103b9aeb7 100644 (file)
--- a/src/utils_format_json.c
+++ b/src/utils_format_json.c
return (status);
BUFFER_ADD (",\"dsnames\":%s", temp);
- BUFFER_ADD (",\"time\":%lu", (unsigned long) vl->time);
+ BUFFER_ADD (",\"time\":%.3f", CDTIME_T_TO_DOUBLE (vl->time));
BUFFER_ADD (",\"interval\":%.3f", CDTIME_T_TO_DOUBLE (vl->interval));
#define BUFFER_ADD_KEYVAL(key, value) do { \