Software /
code /
prosody
Comparison
core/statsmanager.lua @ 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 |
parent | 7664:4f145a9f1477 |
child | 10539:25f80afb1631 |
comparison
equal
deleted
inserted
replaced
9803:35ef6af41600 | 9804:7929e0fe0577 |
---|---|
95 end | 95 end |
96 return stats_interval; | 96 return stats_interval; |
97 end | 97 end |
98 timer.add_task(stats_interval, collect); | 98 timer.add_task(stats_interval, collect); |
99 prosody.events.add_handler("server-started", function () collect() end, -1); | 99 prosody.events.add_handler("server-started", function () collect() end, -1); |
100 prosody.events.add_handler("server-stopped", function () collect() end, -1); | |
100 else | 101 else |
101 log("debug", "Statistics enabled using %s provider, collection is disabled", stats_provider_name); | 102 log("debug", "Statistics enabled using %s provider, collection is disabled", stats_provider_name); |
102 end | 103 end |
103 else | 104 else |
104 log("debug", "Statistics disabled"); | 105 log("debug", "Statistics disabled"); |