diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl index 44f166b1..25fdf88a 100644 --- a/contrib/check_linux_raid.pl +++ b/contrib/check_linux_raid.pl @@ -36,9 +36,11 @@ while() { if ($found) { if (/(\[[_U]+\])/) { $status = $1; - } elsif (/recovery = (.*?)\s/) { + last; + } elsif (/recovery = (.*?)\s/) { $recovery = $1; ($finish) = /finish=(.*?min)/; + last; } } else { if (/$ARGV[0]/) {