aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-22 09:21:23 +0100
committerKim Alvefur <zash@zash.se>2019-01-22 09:21:23 +0100
commit54bfc5180fd94c731b4f021ed1ea142079fc1511 (patch)
treeedac628d90878379d6fe710e7ac184a448c7350e /core
parent19d302f3c477bc8aa22b68d78cd4a4e686dfa556 (diff)
downloadprosody-54bfc5180fd94c731b4f021ed1ea142079fc1511.tar.gz
prosody-54bfc5180fd94c731b4f021ed1ea142079fc1511.zip
core.statsmanager: Do a final collection on shutdown
Diffstat (limited to 'core')
-rw-r--r--core/statsmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index 237b1dd5..50798ad0 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -97,6 +97,7 @@ if stats then
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