Przeglądaj źródła

Merge pull request #18 from abradley/recoverypct

Bugfix: Detect array recovery percentages < 10% in check_linux_raid.pl
Sven Nierlein 13 lat temu
rodzic
commit
c5583abbf2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      contrib/check_linux_raid.pl

+ 1 - 1
contrib/check_linux_raid.pl

@@ -61,7 +61,7 @@ while(defined $nextdev){
 		if (defined $device) {
 			if (/(\[[_U]+\])/) {
 				$status{$device} = $1;
-			} elsif (/recovery = (.*?)\s/) {  
+			} elsif (/recovery =\s+(.*?)\s/) {
 				$recovery{$device} = $1;
 				($finish{$device}) = /finish=(.*?min)/;
 				$device=undef;