diff options
author | Kim Alvefur <zash@zash.se> | 2015-03-10 16:26:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-03-10 16:26:25 +0100 |
commit | 352d71af23a1a59e028668c3843b6eb908bd2087 (patch) | |
tree | 131d29d3e4d4ac80bac454cd1b0a2f34cd6cfb8c | |
parent | f9b9268e61a9dd98c9a438ad4ea2c6e6d92128d9 (diff) | |
download | prosody-352d71af23a1a59e028668c3843b6eb908bd2087.tar.gz prosody-352d71af23a1a59e028668c3843b6eb908bd2087.zip |
statsmanager: Fire event at the start of collection to allow for polling
-rw-r--r-- | core/statsmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua index cddaba06..d6cbd2bc 100644 --- a/core/statsmanager.lua +++ b/core/statsmanager.lua @@ -28,6 +28,7 @@ if stats_interval then function collect() local mark_collection_done = mark_collection_start(); + fire_event("stats-update"); changed_stats, stats_extra = {}, {}; for stat_name, getter in pairs(stats.get_stats()) do local type, value, extra = getter(); |