aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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