Software /
code /
verse
Changeset
352:413e3f449865
Merge with Zash
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 27 Aug 2014 10:34:58 +0100 |
parents | 350:04049524fcd1 (current diff) 351:4455b07f77ed (diff) |
children | 353:8cd05c3d0f1f |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/uptime.lua Wed Aug 27 10:30:38 2014 +0100 +++ b/plugins/uptime.lua Wed Aug 27 10:34:58 2014 +0100 @@ -23,7 +23,7 @@ function (reply) local query = reply:get_child("query", xmlns_last); if reply.attr.type == "result" then - local seconds = query.attr.seconds; + local seconds = tonumber(query.attr.seconds); callback({ seconds = seconds or nil; });