moduleapi: Import util.stanza required for module:broadcast()
[prosody.git] / core / statsmanager.lua
index cddaba06efdd93611126b0e10eb597157c27691c..d6cbd2bc8662b3102e94dbbcd17ef58e268399f5 100644 (file)
@@ -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();