X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fdf517503f5d52f0be7760777a7db855c1ede25c..973b56ce0b9ce214b5dc17795893ece7def6ce78:/widgets/sysload.lua?ds=inline diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 2abac33..144ad0c 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -12,8 +12,7 @@ local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") local io = { open = io.open } -local string = { format = string.format, - match = string.match } +local string = { match = string.match } local setmetatable = setmetatable @@ -30,7 +29,7 @@ local function worker(args) function update() local f = io.open("/proc/loadavg") - local ret = f:read("*all") + local ret = f:read("*a") f:close() load_1, load_5, load_15 = string.match(ret, "([^%s]+) ([^%s]+) ([^%s]+)")