X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6cce5b6fe11fe8c69b08140d645c604fef59e42a..1134630a54d403d1c50b6ed487e9bb5d67319954:/widgets/sysload.lua diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 215fd62..041feb1 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -36,7 +36,8 @@ local function worker(args) end newtimer("sysload", timeout, update) - return sysload.widget + + return setmetatable(sysload, { __index = sysload.widget }) end return setmetatable(sysload, { __call = function(_, ...) return worker(...) end })