Software /
code /
prosody
Changeset
9804:7929e0fe0577
core.statsmanager: Do a final collection on shutdown
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 22 Jan 2019 09:21:23 +0100 |
parents | 9803:35ef6af41600 |
children | 9806:b72d2f4153f7 |
files | core/statsmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/statsmanager.lua Mon Jan 21 21:30:54 2019 +0100 +++ b/core/statsmanager.lua Tue Jan 22 09:21:23 2019 +0100 @@ -97,6 +97,7 @@ end timer.add_task(stats_interval, collect); prosody.events.add_handler("server-started", function () collect() end, -1); + prosody.events.add_handler("server-stopped", function () collect() end, -1); else log("debug", "Statistics enabled using %s provider, collection is disabled", stats_provider_name); end