From a54350782e9bbd81aad3ef58a11826e3cd13134c Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 24 Sep 2009 15:34:56 +0200 Subject: General cleanup to match with HEAD --- fs.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs.lua') diff --git a/fs.lua b/fs.lua index d5b0031..01b74e5 100644 --- a/fs.lua +++ b/fs.lua @@ -20,11 +20,10 @@ local function worker(format) local f = io.popen("LANG=C df -hP") local fs_info = {} - -- Format data for line in f:lines() do if not line:match("^Filesystem.*") then -- Format helper can't deal with matrices, so don't setup a - -- table for each mount point with gmatch + -- table for each mount point, with gmatch local size, used, avail, usep, mount = -- Instead match all at once, including network file systems line:match("^[%w%p]+[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d]+)%%[%s]+([%w%p]+)$") -- cgit v1.2.3