aboutsummaryrefslogtreecommitdiffstats
path: root/core/statsmanager.lua
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
commit5c8fa6441390d588fda8fd6f8aa221fd85741c70 (patch)
tree238f056df4c538bef096f0c03ab4c4deadb12498 /core/statsmanager.lua
parentf67cdc6ec69b95a570784d96371408e29a28dc1d (diff)
downloadprosody-5c8fa6441390d588fda8fd6f8aa221fd85741c70.tar.gz
prosody-5c8fa6441390d588fda8fd6f8aa221fd85741c70.zip
statsmanager: Perform an initial collection right after startup is completed
Diffstat (limited to 'core/statsmanager.lua')
-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