X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..2d35f1b5842adc089e28a6332a2bbfc941e9d168:/widget/cpu.lua?ds=sidebyside diff --git a/widget/cpu.lua b/widget/cpu.lua index 3e3b3a3..e8a6c9c 100644 --- a/widget/cpu.lua +++ b/widget/cpu.lua @@ -19,7 +19,7 @@ local setmetatable = setmetatable -- lain.widget.cpu local cpu = { core = {} } -local function worker(args) +local function factory(args) local args = args or {} local timeout = args.timeout or 2 local settings = args.settings or function() end @@ -79,4 +79,4 @@ local function worker(args) return cpu end -return setmetatable(cpu, { __call = function(_, ...) return worker(...) end }) +return setmetatable(cpu, { __call = function(_, ...) return factory(...) end })