From 5c8fa6441390d588fda8fd6f8aa221fd85741c70 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 22 Feb 2015 18:44:48 +0100 Subject: statsmanager: Perform an initial collection right after startup is completed --- core/statsmanager.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3