aboutsummaryrefslogtreecommitdiff
path: root/widgets/cpuinf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/cpuinf.lua')
-rw-r--r--widgets/cpuinf.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/cpuinf.lua b/widgets/cpuinf.lua
index b925b27..b0ea782 100644
--- a/widgets/cpuinf.lua
+++ b/widgets/cpuinf.lua
@@ -12,7 +12,8 @@ local string = { gmatch = string.gmatch }
-- Cpuinf: provides speed and cache information for all available CPUs/cores
-module("vicious.widgets.cpuinf")
+-- vicious.widgets.cpuinf
+local cpuinf = {}
-- {{{ CPU Information widget type
@@ -40,4 +41,4 @@ local function worker(format)
end
-- }}}
-setmetatable(_M, { __call = function(_, ...) return worker(...) end })
+return setmetatable(cpuinf, { __call = function(_, ...) return worker(...) end })