mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
statsmanager: Fire event at the start of collection to allow for polling
This commit is contained in:
parent
f9b9268e61
commit
352d71af23
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ if stats_interval then
|
||||||
|
|
||||||
function collect()
|
function collect()
|
||||||
local mark_collection_done = mark_collection_start();
|
local mark_collection_done = mark_collection_start();
|
||||||
|
fire_event("stats-update");
|
||||||
changed_stats, stats_extra = {}, {};
|
changed_stats, stats_extra = {}, {};
|
||||||
for stat_name, getter in pairs(stats.get_stats()) do
|
for stat_name, getter in pairs(stats.get_stats()) do
|
||||||
local type, value, extra = getter();
|
local type, value, extra = getter();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue