Changeset

6910:82765a4ec799

statsmanager: Add get() method
author Matthew Wild <mwild1@gmail.com>
date Sun, 18 Oct 2015 21:35:21 +0100
parents 6907:a24c9c1edd67
children 6911:56c9bc4ba247
files core/statsmanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 };