aboutsummaryrefslogtreecommitdiff
path: root/widgets/raid.lua
diff options
context:
space:
mode:
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