X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..c155301459aa73a1b5e9a1b674be12f03021c4fe:/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