X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f63a7fd098e3826e397c16938968a1a840150abe..0a6274b4343fa5b9ed9fb83ac72cbe9fc89610b0:/widgets/temp.lua diff --git a/widgets/temp.lua b/widgets/temp.lua index a857e71..a4ada52 100644 --- a/widgets/temp.lua +++ b/widgets/temp.lua @@ -29,8 +29,7 @@ local function worker(args) function update() local f = io.open(tempfile) - if f ~= nil - then + if f then coretemp_now = tonumber(f:read("*all")) / 1000 f:close() else