X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..a274576cfd89c1475aa6b9149ad25fdd5cda1060:/widgets/sysload.lua?ds=inline 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