Mercurial > prosody-hg
diff plugins/mod_uptime.lua @ 10758:d0e6d5bc7ea2
Merge with upstream trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 23 Apr 2020 13:53:18 +0100 |
| parents | abbdf72b0710 |
| children | 74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_uptime.lua Thu Apr 23 13:52:19 2020 +0100 +++ b/plugins/mod_uptime.lua Thu Apr 23 13:53:18 2020 +0100 @@ -16,7 +16,7 @@ module:hook("iq-get/host/jabber:iq:last:query", function(event) local origin, stanza = event.origin, event.stanza; - origin.send(st.reply(stanza):tag("query", {xmlns = "jabber:iq:last", seconds = tostring(os.difftime(os.time(), start_time))})); + origin.send(st.reply(stanza):tag("query", {xmlns = "jabber:iq:last", seconds = tostring(("%d"):format(os.difftime(os.time(), start_time)))})); return true; end);
