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 | 5c8fa6441390d588fda8fd6f8aa221fd85741c70 (patch) | |
tree | 238f056df4c538bef096f0c03ab4c4deadb12498 /core | |
parent | f67cdc6ec69b95a570784d96371408e29a28dc1d (diff) | |
download | prosody-5c8fa6441390d588fda8fd6f8aa221fd85741c70.tar.gz prosody-5c8fa6441390d588fda8fd6f8aa221fd85741c70.zip |
statsmanager: Perform an initial collection right after startup is completed
Diffstat (limited to 'core')
-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 |