core.moduleapi: Allow passing a config table trough :measure
authorKim Alvefur <zash@zash.se>
Fri, 04 Jan 2019 07:00:45 +0100
changeset 10889 2f751880767c
parent 10888 6992c4be1a19
child 10890 994c4a333199
core.moduleapi: Allow passing a config table trough :measure
core/moduleapi.lua
--- a/core/moduleapi.lua	Fri Jan 04 07:00:44 2019 +0100
+++ b/core/moduleapi.lua	Fri Jan 04 07:00:45 2019 +0100
@@ -508,9 +508,9 @@
 	return require"core.storagemanager".open(self.host, name or self.name, store_type);
 end
 
-function api:measure(name, stat_type)
+function api:measure(name, stat_type, conf)
 	local measure = require "core.statsmanager".measure;
-	return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name);
+	return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name, conf);
 end
 
 function api:measure_object_event(events_object, event_name, stat_name)