aboutsummaryrefslogtreecommitdiffstats
path: root/core/statsmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-03-10 16:26:25 +0100
committerKim Alvefur <zash@zash.se>2015-03-10 16:26:25 +0100
commit352d71af23a1a59e028668c3843b6eb908bd2087 (patch)
tree131d29d3e4d4ac80bac454cd1b0a2f34cd6cfb8c /core/statsmanager.lua
parentf9b9268e61a9dd98c9a438ad4ea2c6e6d92128d9 (diff)
downloadprosody-352d71af23a1a59e028668c3843b6eb908bd2087.tar.gz
prosody-352d71af23a1a59e028668c3843b6eb908bd2087.zip
statsmanager: Fire event at the start of collection to allow for polling
Diffstat (limited to 'core/statsmanager.lua')
-rw-r--r--core/statsmanager.lua1
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();