mod_uptime: Use time of server start rather than module load

Wed, 08 Jul 2009 04:22:45 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 08 Jul 2009 04:22:45 +0100
changeset 1495
6c745a108e68
parent 1494
bdfa5274e111
child 1496
4fa337035f46

mod_uptime: Use time of server start rather than module load

plugins/mod_uptime.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_uptime.lua	Wed Jul 08 04:22:15 2009 +0100
+++ b/plugins/mod_uptime.lua	Wed Jul 08 04:22:45 2009 +0100
@@ -13,7 +13,7 @@
 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");
 

mercurial