X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fdf517503f5d52f0be7760777a7db855c1ede25c..e5b730dbf0408c6c1bda7d16aa02873815a79623:/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]+)")