X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2119b79449f73828eae44ecaa762c2daf52de394..86432aa3a2f8c6437ec47e5dd88b110612329e6e:/widgets/sysload.lua?ds=sidebyside diff --git a/widgets/sysload.lua b/widgets/sysload.lua index b10c5e2..d8e4713 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -29,7 +29,7 @@ local function worker(args) function update() local f = io.open("/proc/loadavg") - local ret = f:read("*a") + local ret = f:read("*all") f:close() load_1, load_5, load_15 = string.match(ret, "([^%s]+) ([^%s]+) ([^%s]+)")