X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..a0da152bb39c5c3ae239a5743c40cb35038c4a21:/widgets/temp.lua?ds=sidebyside diff --git a/widgets/temp.lua b/widgets/temp.lua index 9f41fdb..1c7e86c 100644 --- a/widgets/temp.lua +++ b/widgets/temp.lua @@ -24,7 +24,7 @@ local function worker(args) temp.widget = wibox.widget.textbox() - function update() + function temp.update() local f = io.open(tempfile) if f then coretemp_now = tonumber(f:read("*all")) / 1000 @@ -37,7 +37,7 @@ local function worker(args) settings() end - helpers.newtimer("coretemp", timeout, update) + helpers.newtimer("coretemp", timeout, temp.update) return temp end