From: Jo-Philipp Wich Date: Tue, 22 Jan 2013 14:55:29 +0000 (+0100) Subject: ubus: expose remaining session lifetime in ubus session.list call X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8a7dac6a4947b5cc4b54957a49ff9814a8a18aa;p=oweals%2Fuhttpd.git ubus: expose remaining session lifetime in ubus session.list call --- diff --git a/ubus-session.c b/ubus-session.c index ddac28b..e590d9c 100644 --- a/ubus-session.c +++ b/ubus-session.c @@ -144,6 +144,7 @@ uh_ubus_session_dump(struct uh_ubus_session *ses, blobmsg_add_string(&buf, "sid", ses->id); blobmsg_add_u32(&buf, "timeout", ses->timeout); + blobmsg_add_u32(&buf, "expires", uloop_timeout_pending(&ses->t) / 1000); c = blobmsg_open_table(&buf, "acls"); uh_ubus_session_dump_acls(ses, &buf);