summaryrefslogtreecommitdiffstats
path: root/contrib/check_linux_raid.pl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/check_linux_raid.pl')
-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>) {
36 if ($found) { 36 if ($found) {
37 if (/(\[[_U]+\])/) { 37 if (/(\[[_U]+\])/) {
38 $status = $1; 38 $status = $1;
39 } elsif (/recovery = (.*?)\s/) { 39 last;
40 } elsif (/recovery = (.*?)\s/) {
40 $recovery = $1; 41 $recovery = $1;
41 ($finish) = /finish=(.*?min)/; 42 ($finish) = /finish=(.*?min)/;
43 last;
42 } 44 }
43 } else { 45 } else {
44 if (/$ARGV[0]/) { 46 if (/$ARGV[0]/) {