X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..1400e906708e907c268a37726a2c9852c4941377:/widgets/sysload.lua diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 49f640c..df9dbea 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -24,7 +24,7 @@ local function worker(args) sysload.widget = wibox.widget.textbox() - function update() + function sysload.update() local f = io.open("/proc/loadavg") local ret = f:read("*all") f:close() @@ -35,7 +35,7 @@ local function worker(args) settings() end - helpers.newtimer("sysload", timeout, update) + helpers.newtimer("sysload", timeout, sysload.update) return sysload end