mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
statsmanager: Perform an initial collection right after startup is completed
This commit is contained in:
parent
f67cdc6ec6
commit
5c8fa64413
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue