diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
commit | 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 (patch) | |
tree | 03290f705cef2ec761a0a1ee46b3bc38cb08e0ea /widgets/fs.lua | |
parent | 237470c8f45190b213e3a173ce6ae1a74b3e11fe (diff) | |
download | vicious-legacy-4dad2e360c1c464feef9a8aaff6e96a7636c54b7.tar.xz |
API: missing warg should not break awesome
Diffstat (limited to 'widgets/fs.lua')
-rw-r--r-- | widgets/fs.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/fs.lua b/widgets/fs.lua index a85b903..4490c91 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -21,12 +21,12 @@ module("vicious.widgets.fs") local unit = { ["mb"] = 1024, ["gb"] = 1024^2 } -- {{{ Filesystem widget type -local function worker(format, nfs) +local function worker(format, warg) -- Fallback to listing local filesystems - if nfs then nfs = "" else nfs = "-l" end + if warg then warg = "" else warg = "-l" end -- Get (non-localized)data from df - local f = io.popen("LC_ALL=C df -kP " .. nfs) + local f = io.popen("LC_ALL=C df -kP " .. warg) local fs_info = {} for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) |