mod_uptime: Use time of server start rather than module load
authorMatthew Wild <mwild1@gmail.com>
Wed, 8 Jul 2009 03:22:45 +0000 (04:22 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 8 Jul 2009 03:22:45 +0000 (04:22 +0100)
plugins/mod_uptime.lua

index ffb55a3c2f407de244abf05a64b64e39bfff410d..45a83824f5421717fa0631a25fc00279a4e0d962 100644 (file)
@@ -13,7 +13,7 @@ local st = require "util.stanza"
 local jid_split = require "util.jid".split;
 local t_concat = table.concat;
 
-local start_time = os.time();
+local start_time = prosody.start_time;
 
 module:add_feature("jabber:iq:last");