From 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 14 Mar 2010 03:37:40 +0100 Subject: API: missing warg should not break awesome --- widgets/fs.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/fs.lua') 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) -- cgit v1.2.3