Code

Fix Debian bug #574612: Return WARNING on rebuild
[nagiosplug.git] / contrib / check_linux_raid.pl
index c7c9c55e4b2e684e6a60f878c9556814e5daf298..d2e5b4632d4b2b5631f38e45605388a74886efc1 100644 (file)
@@ -64,6 +64,7 @@ while(defined $nextdev){
                        } elsif (/recovery = (.*?)\s/) {  
                                $recovery{$device} = $1;
                                ($finish{$device}) = /finish=(.*?min)/;
+                               $device=undef;
                        } elsif (/^\s*$/) {
                                $device=undef;
                        }