X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..a297ea530f31a0b7824e1ab630d31786de6ab22f:/widgets/cpu.lua?ds=sidebyside diff --git a/widgets/cpu.lua b/widgets/cpu.lua index 79f99af..076b692 100644 --- a/widgets/cpu.lua +++ b/widgets/cpu.lua @@ -26,7 +26,7 @@ local function worker(args) cpu.widget = wibox.widget.textbox() - function update() + function cpu.update() -- Read the amount of time the CPUs have spent performing -- different kinds of work. Read the first line of /proc/stat -- which is the sum of all CPUs. @@ -74,7 +74,7 @@ local function worker(args) settings() end - helpers.newtimer("cpu", timeout, update) + helpers.newtimer("cpu", timeout, cpu.update) return cpu end