X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fadc722655b2ba4ebe98eece3498da3c88f8b6fc..fc5974a9c2838efa8dedbd350d9623e193ab71a3:/widgets/cpu.lua diff --git a/widgets/cpu.lua b/widgets/cpu.lua index 8501388..f7fb087 100644 --- a/widgets/cpu.lua +++ b/widgets/cpu.lua @@ -77,7 +77,7 @@ local function worker(args) newtimer("cpu", timeout, update) - return cpu.widget + return setmetatable(cpu, { __index = cpu.widget }) end return setmetatable(cpu, { __call = function(_, ...) return worker(...) end })