X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a2d553c9b6f59e3da9f25221dfb42ba4053acb44..b9c5e5a2cf7860edb1e1dd9df0e32350b7b9a985:/widgets/temp.lua diff --git a/widgets/temp.lua b/widgets/temp.lua index 61a9aa5..5994f59 100644 --- a/widgets/temp.lua +++ b/widgets/temp.lua @@ -10,7 +10,7 @@ local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") -local io = io +local io = { open = io.open } local tonumber = tonumber local setmetatable = setmetatable @@ -31,7 +31,7 @@ local function worker(args) local f = io.open(tempfile) if f ~= nil then - coretemp_now = tonumber(f:read("*all")) / 1000 + coretemp_now = tonumber(f:read("*a")) / 1000 f:close() else coretemp_now = "N/A"