aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/check_linux_raid.pl4
1 files changed, 3 insertions, 1 deletions
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(<MDSTAT>) {
if ($found) {
if (/(\[[_U]+\])/) {
$status = $1;
- } elsif (/recovery = (.*?)\s/) {
+ last;
+ } elsif (/recovery = (.*?)\s/) {
$recovery = $1;
($finish) = /finish=(.*?min)/;
+ last;
}
} else {
if (/$ARGV[0]/) {