Fix collection of RAID errors

This commit is contained in:
Jamie Cameron
2015-01-08 17:24:58 -08:00
parent 807de6e9ce
commit 39bf55a410

View File

@@ -55,6 +55,7 @@ while(<MDSTAT>) {
elsif (/\s+(\d+)\s+blocks\s*(.*)/) {
# Block count only after device line
$mdstat{$lastdev}->[3] = $1;
$mdstat{$lastdev}->[5] = $2;
}
}
elsif (/^\s*\[\S+\]\s*(resync|recovery)\s*=\s([0-9\.]+)/) {