summaryrefslogtreecommitdiff
path: root/log
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-03-18 06:58:38 +0000
committerJohn Crispin <blogic@openwrt.org>2014-03-18 06:58:38 +0000
commit1015c3779f37a17c6a2512bfc817e56d3042a237 (patch)
treed4ef2f4607c10ff42b78c09f4e7d45c9421d9e7a /log
parentc8d14b9b5d0fa3a3f99df386b67670e083c82095 (diff)
downloadubox-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/logd.c b/log/logd.c
index e4f9b3f..5c614f6 100644
--- a/log/logd.c
+++ b/log/logd.c
@@ -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;