X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fadc722655b2ba4ebe98eece3498da3c88f8b6fc..5af7a8c1726862f770b84e46cfa0eee064eac0fb:/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 })