X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..586c54a25750fd90d91c15ac8eb818b2613de582:/widget/temp.lua?ds=sidebyside diff --git a/widget/temp.lua b/widget/temp.lua index b662346..8e3bc3c 100644 --- a/widget/temp.lua +++ b/widget/temp.lua @@ -16,7 +16,7 @@ local setmetatable = setmetatable -- lain.widget.temp local temp = {} -local function worker(args) +local function factory(args) local args = args or {} local timeout = args.timeout or 2 local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp" @@ -42,4 +42,4 @@ local function worker(args) return temp end -return setmetatable(temp, { __call = function(_, ...) return worker(...) end }) +return setmetatable(temp, { __call = function(_, ...) return factory(...) end })