aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-08 04:19:15 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-08 04:19:15 +0100
commit2cbe18d731f1d6ab265adc8acf7ee17cfee1c0b1 (patch)
treebc3b275a236c549eb58efcd7ec818f5d6f71aeee
parent25c8f0ffa440c9fe664b187cc19b322e7b37ae39 (diff)
downloadprosody-2cbe18d731f1d6ab265adc8acf7ee17cfee1c0b1.tar.gz
prosody-2cbe18d731f1d6ab265adc8acf7ee17cfee1c0b1.zip
prosody: Record time the server started
-rwxr-xr-xprosody2
1 files changed, 2 insertions, 0 deletions
diff --git a/prosody b/prosody
index b7fb95fe..c9c56a5d 100755
--- a/prosody
+++ b/prosody
@@ -234,6 +234,8 @@ end
-- And lock now...
prosody.lock_globals();
+prosody.start_time = os.time();
+
eventmanager.fire_event("server-started");
prosody.events.fire_event("server-started");