aboutsummaryrefslogtreecommitdiff
path: root/widgets/raid.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-04-28 14:55:19 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-04-28 14:55:19 +0200
commitfdae848bba84ffdde70cb69696dd234e7b289b41 (patch)
treeb09267f8405367e6ef9c89140418f232f9b93d58 /widgets/raid.lua
parent3e128752952d49738fdb8c21e617da3030d32d1a (diff)
downloadvicious-legacy-fdae848bba84ffdde70cb69696dd234e7b289b41.tar.xz
raid: removed permanent stats storage
Diffstat (limited to 'widgets/raid.lua')
-rw-r--r--widgets/raid.lua12
1 files 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