# HG changeset patch # User Kim Alvefur # Date 1426001185 -3600 # Node ID 71b5de1d830bc5d4dd87fa369e563e04002154fb # Parent 74946f050209c7d72a9865d409e71224290e2e9f statsmanager: Fire event at the start of collection to allow for polling diff -r 74946f050209 -r 71b5de1d830b 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();