From 187122f82301418de6c7865e115dae397665f675 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 10 Mar 2015 16:26:25 +0100 Subject: statsmanager: Fire event at the start of collection to allow for polling --- core/statsmanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core') 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(); -- cgit v1.2.3