From 1015c3779f37a17c6a2512bfc817e56d3042a237 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 18 Mar 2014 06:58:38 +0000 Subject: [PATCH] logd: fix time passed via unix fd Signed-off-by: John Crispin --- log/logd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1