aboutsummaryrefslogtreecommitdiff
path: root/fs.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 22:03:21 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 22:03:21 +0200
commit8b38567d751848d93b18e96de1cddde339ebdbf0 (patch)
tree1e23ab073ee2983b56db11724c5613526a226f70 /fs.lua
parent798036e4452cbd1001fec48d27777dc697c42971 (diff)
downloadvicious-legacy-8b38567d751848d93b18e96de1cddde339ebdbf0.tar.xz
Added missing poolsize info to the README + minor change in fs.lua
Diffstat (limited to 'fs.lua')
-rw-r--r--fs.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs.lua b/fs.lua
index 055bf42..f4ccf0f 100644
--- a/fs.lua
+++ b/fs.lua
@@ -17,7 +17,7 @@ module("vicious.fs")
function worker(format)
-- Get data from df
local f = io.popen("df -hP")
- local args = {}
+ local fs_info = {}
-- Format data
for line in f:lines() do
@@ -28,15 +28,15 @@ function worker(format)
-- Instead match all at once, including network file systems
line:match("^[%w/-:%.]+[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d]+)%%[%s]+([-/%w]+)$")
- args["{"..mount.." size}"] = size
- args["{"..mount.." used}"] = used
- args["{"..mount.." avail}"] = avail
- args["{"..mount.." usep}"] = usep
+ fs_info["{"..mount.." size}"] = size
+ fs_info["{"..mount.." used}"] = used
+ fs_info["{"..mount.." avail}"] = avail
+ fs_info["{"..mount.." usep}"] = usep
end
end
f:close()
- return args
+ return fs_info
end
-- }}}