X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubox.git;a=blobdiff_plain;f=log%2Flogd.c;h=5c614f6101c9b2d2269f25068c48035e419b0386;hp=e4f9b3f895e43411459260ad35d9fa53a99003e1;hb=1015c3779f37a17c6a2512bfc817e56d3042a237;hpb=c8d14b9b5d0fa3a3f99df386b67670e083c82095 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;