From fdae848bba84ffdde70cb69696dd234e7b289b41 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 28 Apr 2010 14:55:19 +0200 Subject: [PATCH] raid: removed permanent stats storage --- widgets/raid.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/widgets/raid.lua b/widgets/raid.lua index 3f9ef43..a714fb0 100644 --- a/widgets/raid.lua +++ b/widgets/raid.lua @@ -25,13 +25,11 @@ local mddev = {} -- {{{ RAID widget type local function worker(format, warg) if not warg then return end - if not mddev[warg] then - mddev[warg] = { - ["found"] = false, - ["active"] = 0, - ["assigned"] = 0 - } - end + mddev[warg] = { + ["found"] = false, + ["active"] = 0, + ["assigned"] = 0 + } -- Linux manual page: md(4) for line in io.lines("/proc/mdstat") do