aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Merenbach <andrew@merenbach.com>2014-03-07 20:23:18 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2014-04-21 20:25:26 (GMT)
commit9fc02f16da6c967374f29caf9caaf8725310da41 (patch)
tree587dad50b1dc3926e4f6ad183e66de85ab0b5dfa
parent178bc65f1b5d3133e34a76b96dac484fe8a07e1e (diff)
downloadvicious-legacy-9fc02f16da6c967374f29caf9caaf8725310da41.tar.xz
fs: add FreeBSD mount point detection to regexp
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
-rw-r--r--widgets/fs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/fs.lua b/widgets/fs.lua
index c0b7f16..7832b1f 100644
--- a/widgets/fs.lua
+++ b/widgets/fs.lua
@@ -32,7 +32,7 @@ local function worker(format, warg)
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
local s = string.match(line, "^.-[%s]([%d]+)")
local u,a,p = string.match(line, "([%d]+)[%D]+([%d]+)[%D]+([%d]+)%%")
- local m = string.match(line, "%%[%s]([%p%w]+)")
+ local m = string.match(line, "%%[%s]+([%p%w]+)")
if u and m then -- Handle 1st line and broken regexp
helpers.uformat(fs_info, m .. " size", s, unit)