aboutsummaryrefslogtreecommitdiff
path: root/contrib/sensors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sensors.lua')
-rw-r--r--contrib/sensors.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/sensors.lua b/contrib/sensors.lua
index 45c7d9a..3ddeb01 100644
--- a/contrib/sensors.lua
+++ b/contrib/sensors.lua
@@ -16,7 +16,8 @@ local string = {
-- Sensors: provides access to lm_sensors data
-module("vicious.contrib.sensors")
+-- vicious.contrib.sensors
+local sensors = {}
-- {{{ Split helper function
@@ -65,4 +66,4 @@ local function worker(format, warg)
end
-- }}}
-setmetatable(_M, { __call = function(_, ...) return worker(...) end })
+return setmetatable(sensors, { __call = function(_, ...) return worker(...) end })