X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fdf517503f5d52f0be7760777a7db855c1ede25c..44facf162420816bdcfc851d4ff5e033996fa948:/widgets/sysload.lua?ds=sidebyside 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]+)")