Fix always reading status from the last line (1045506)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@917 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Matthew Kent 2004-11-20 22:43:51 +00:00
parent b4a3db443b
commit ef71bc5f57

View file

@ -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]/) {