statsmanager: Perform an initial collection right after startup is completed

This commit is contained in:
Kim Alvefur 2015-02-22 18:44:48 +01:00
parent f67cdc6ec6
commit 5c8fa64413

View file

@ -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