From e929bea270875c8fa831747bd3ee3090561f2113 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 18 Jun 2012 01:30:26 +0200 Subject: widgets: cleanup behind the last commit 363c03e --- widgets/raid.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/raid.lua') 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 -- cgit v1.2.3