aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
commit187122f82301418de6c7865e115dae397665f675 (patch)
tree131d29d3e4d4ac80bac454cd1b0a2f34cd6cfb8c /core
parenta65615d8f2430de97cb1c426a018f84e3c2d6f99 (diff)
downloadprosody-187122f82301418de6c7865e115dae397665f675.tar.gz
prosody-187122f82301418de6c7865e115dae397665f675.zip
statsmanager: Fire event at the start of collection to allow for polling
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 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();