aboutsummaryrefslogtreecommitdiff
path: root/widgets/raid.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2012-06-18 01:30:26 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-06-18 01:31:42 +0200
commite929bea270875c8fa831747bd3ee3090561f2113 (patch)
tree3fccf7766480d6c0ce1d9405634170aa032e016a /widgets/raid.lua
parent363c03e79c334cc0f3d75c1a3b60edbca0214465 (diff)
downloadvicious-legacy-e929bea270875c8fa831747bd3ee3090561f2113.tar.xz
widgets: cleanup behind the last commit 363c03e
Diffstat (limited to 'widgets/raid.lua')
-rw-r--r--widgets/raid.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/raid.lua b/widgets/raid.lua
index 58a7359..eafb118 100644
--- a/widgets/raid.lua
+++ b/widgets/raid.lua
@@ -33,8 +33,8 @@ local function worker(format, warg)
}
-- Linux manual page: md(4)
- local fd = io.open("/proc/mdstat")
- for line in fd:lines() do
+ local f = io.open("/proc/mdstat")
+ for line in f:lines() do
if mddev[warg]["found"] then
local updev = string.match(line, "%[[_U]+%]")
@@ -51,7 +51,7 @@ local function worker(format, warg)
end
end
end
- fd:close()
+ f:close()
return {mddev[warg]["assigned"], mddev[warg]["active"]}
end