diff options
author | John Crispin <blogic@openwrt.org> | 2014-03-18 06:58:38 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-03-18 06:58:38 +0000 |
commit | 1015c3779f37a17c6a2512bfc817e56d3042a237 (patch) | |
tree | d4ef2f4607c10ff42b78c09f4e7d45c9421d9e7a /log | |
parent | c8d14b9b5d0fa3a3f99df386b67670e083c82095 (diff) | |
download | ubox-1015c3779f37a17c6a2512bfc817e56d3042a237.tar.gz |
logd: fix time passed via unix fd
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'log')
-rw-r--r-- | log/logd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_u32(&b, "id", l->id); blobmsg_add_u32(&b, "priority", l->priority); blobmsg_add_u32(&b, "source", l->source); - blobmsg_add_u64(&b, "time", l->ts.tv_sec); + blobmsg_add_u64(&b, "time", l->ts.tv_sec * 1000LL); l = log_list(count, l); if (ustream_write(&cl->s.stream, (void *) b.head, blob_len(b.head) + sizeof(struct blob_attr), false) <= 0) break; |