# HG changeset patch # User Matthew Wild # Date 1445200521 -3600 # Node ID 82765a4ec799766edb78ec70c98b6acb44d0836d # Parent a24c9c1edd67e769242b4cd742038bd13c624a1f statsmanager: Add get() method diff -r a24c9c1edd67 -r 82765a4ec799 core/statsmanager.lua --- a/core/statsmanager.lua Sat Oct 17 19:30:58 2015 +0200 +++ b/core/statsmanager.lua Sun Oct 18 21:35:21 2015 +0100 @@ -66,4 +66,7 @@ get_stats = function () return latest_stats, changed_stats, stats_extra; end; + get = function (name) + return latest_stats[name], stats_extra[name]; + end; };