aboutsummaryrefslogtreecommitdiff
path: root/fs.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
commita54350782e9bbd81aad3ef58a11826e3cd13134c (patch)
treec2281044157b39ab3c7f780d500d084e7d3d3d55 /fs.lua
parent080d1e82f535e5a8e6fb3fbb4e1df97f7a21bf42 (diff)
downloadvicious-legacy-a54350782e9bbd81aad3ef58a11826e3cd13134c.tar.xz
General cleanup to match with HEAD
Diffstat (limited to 'fs.lua')
-rw-r--r--fs.lua3
1 files changed, 1 insertions, 2 deletions
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]+)$")