diff options
author | Kim Alvefur <zash@zash.se> | 2015-02-22 18:44:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-02-22 18:44:48 +0100 |
commit | 765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d (patch) | |
tree | 238f056df4c538bef096f0c03ab4c4deadb12498 | |
parent | 71cee64f08c1c0f36a0c073894192b3ede52dfcb (diff) | |
download | prosody-765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d.tar.gz prosody-765e9aa03e5a7fe2a4f5aede47aaf90ffc4ef39d.zip |
statsmanager: Perform an initial collection right after startup is completed
-rw-r--r-- | core/statsmanager.lua | 1 |
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 |