Merge with Zash

Wed, 27 Aug 2014 10:34:58 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 27 Aug 2014 10:34:58 +0100
changeset 352
413e3f449865
parent 350
04049524fcd1 (current diff)
parent 351
4455b07f77ed (diff)
child 353
8cd05c3d0f1f

Merge with Zash

--- 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;
 						});

mercurial