X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/aacefc209e47c019f69a8234770e79b7c08e0b29..229d0d3860126bfbf190c54d8edad18174fe017a:/widgets/sysload.lua diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 2abac33..b15b1bf 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -30,7 +30,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]+)")