From 352d71af23a1a59e028668c3843b6eb908bd2087 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/statsmanager.lua') 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