aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-02-22 18:44:48 +0100
committerKim Alvefur <zash@zash.se>2015-02-22 18:44:48 +0100
commit765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d (patch)
tree238f056df4c538bef096f0c03ab4c4deadb12498 /core
parent71cee64f08c1c0f36a0c073894192b3ede52dfcb (diff)
downloadprosody-765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d.tar.gz
prosody-765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d.zip
statsmanager: Perform an initial collection right after startup is completed
Diffstat (limited to 'core')
-rw-r--r--core/statsmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index 62d217ef..cddaba06 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -48,6 +48,7 @@ if stats_interval then
end
timer.add_task(stats_interval, collect);
+ prosody.events.add_handler("server-started", function () collect() end, -1);
else
log("debug", "Statistics collection is disabled");
-- nop