core.statsmanager: Allow passing a config table trough measure
authorKim Alvefur <zash@zash.se>
Fri, 04 Jan 2019 07:00:44 +0100
changeset 10888 6992c4be1a19
parent 10887 d75d805c852f
child 10889 2f751880767c
core.statsmanager: Allow passing a config table trough measure
core/statsmanager.lua
--- a/core/statsmanager.lua	Fri Jan 04 06:56:45 2019 +0100
+++ b/core/statsmanager.lua	Fri Jan 04 07:00:44 2019 +0100
@@ -60,9 +60,9 @@
 local stats_extra = {};
 
 if stats then
-	function measure(type, name)
+	function measure(type, name, conf)
 		local f = assert(stats[type], "unknown stat type: "..type);
-		return f(name);
+		return f(name, conf);
 	end
 
 	if stats_interval then