diff options
-rw-r--r-- | ubus-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus-session.c b/ubus-session.c index e590d9c..8354489 100644 --- a/ubus-session.c +++ b/ubus-session.c @@ -144,7 +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); + blobmsg_add_u32(&buf, "expires", uloop_timeout_remaining(&ses->t) / 1000); c = blobmsg_open_table(&buf, "acls"); uh_ubus_session_dump_acls(ses, &buf); |