diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-18 01:30:26 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-18 01:31:42 +0200 |
commit | e929bea270875c8fa831747bd3ee3090561f2113 (patch) | |
tree | 3fccf7766480d6c0ce1d9405634170aa032e016a /widgets/raid.lua | |
parent | 363c03e79c334cc0f3d75c1a3b60edbca0214465 (diff) | |
download | vicious-legacy-e929bea270875c8fa831747bd3ee3090561f2113.tar.xz |
widgets: cleanup behind the last commit 363c03e
Diffstat (limited to 'widgets/raid.lua')
-rw-r--r-- | widgets/raid.lua | 6 |
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 |