# HG changeset patch # User Matthew Wild # Date 1409132098 -3600 # Node ID 413e3f4498651c2da8460c50a9546252e056a3ad # Parent 04049524fcd1d6766b9b9180048b331c958552f8# Parent 4455b07f77edbe69633287fe3882f7bb6a7a55ae Merge with Zash diff -r 04049524fcd1 -r 413e3f449865 plugins/uptime.lua --- 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; });