X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..f4870b8858835726ea6f6562a0a3d7e092425595:/widget/mem.lua?ds=inline diff --git a/widget/mem.lua b/widget/mem.lua index 74ebad0..cf0d314 100644 --- a/widget/mem.lua +++ b/widget/mem.lua @@ -18,7 +18,7 @@ local setmetatable = setmetatable -- lain.widget.mem local mem = {} -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 @@ -53,4 +53,4 @@ local function worker(args) return mem end -return setmetatable(mem, { __call = function(_, ...) return worker(...) end }) +return setmetatable(mem, { __call = function(_, ...) return factory(...) end })