statsmanager: Fire event at the start of collection to allow for polling
authorKim Alvefur <zash@zash.se>
Tue, 10 Mar 2015 16:26:25 +0100
changeset 6585 71b5de1d830b
parent 6583 74946f050209
child 6586 93bab6958683
statsmanager: Fire event at the start of collection to allow for polling
core/statsmanager.lua
--- a/core/statsmanager.lua	Tue Feb 24 15:22:09 2015 +0000
+++ b/core/statsmanager.lua	Tue Mar 10 16:26:25 2015 +0100
@@ -28,6 +28,7 @@
 
 	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();