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