aboutsummaryrefslogtreecommitdiff
path: root/widgets/fs.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-15 17:55:25 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-15 17:55:25 +0100
commit0299c15dc0869a12ceec947e6e51088bb88da56d (patch)
treee1989cb5e9fe5ea1e0edaed0754265a4056690c4 /widgets/fs.lua
parent4fc6dffe94d01a4696bf1f7420b79b05ecf5d35c (diff)
downloadvicious-legacy-0299c15dc0869a12ceec947e6e51088bb88da56d.tar.xz
widgets: minor cleanup before a tag in cpuinf, fs, mbox...
Diffstat (limited to 'widgets/fs.lua')
-rw-r--r--widgets/fs.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/fs.lua b/widgets/fs.lua
index 4490c91..63d2089 100644
--- a/widgets/fs.lua
+++ b/widgets/fs.lua
@@ -25,9 +25,8 @@ local function worker(format, warg)
-- Fallback to listing local filesystems
if warg then warg = "" else warg = "-l" end
- -- Get (non-localized)data from df
+ local fs_info = {} -- Get data from df
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)
local s = string.match(line, "^.-[%s]([%d]+)")