From 9fc02f16da6c967374f29caf9caaf8725310da41 Mon Sep 17 00:00:00 2001 From: Andrew Merenbach Date: Fri, 7 Mar 2014 22:23:18 +0200 Subject: fs: add FreeBSD mount point detection to regexp Signed-off-by: Adrian C. (anrxc) --- widgets/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') 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) -- cgit v1.2.3