X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..2d35f1b5842adc089e28a6332a2bbfc941e9d168:/widget/sysload.lua?ds=inline diff --git a/widget/sysload.lua b/widget/sysload.lua index ada349c..d7422d8 100644 --- a/widget/sysload.lua +++ b/widget/sysload.lua @@ -17,7 +17,7 @@ local setmetatable = setmetatable -- lain.widget.sysload local sysload = {} -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 @@ -40,4 +40,4 @@ local function worker(args) return sysload end -return setmetatable(sysload, { __call = function(_, ...) return worker(...) end }) +return setmetatable(sysload, { __call = function(_, ...) return factory(...) end })