raid: removed permanent stats storage

This commit is contained in:
Adrian C. (anrxc) 2010-04-28 14:55:19 +02:00
parent 3e12875295
commit fdae848bba
1 changed files with 5 additions and 7 deletions

View File

@ -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