X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..7a172006d31e9bc94441a8f818336fbd46a44006:/widget/mem.lua 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 })