diff --git a/plugins/other/raid b/plugins/other/raid index ab5522e7..90ccd56f 100755 --- a/plugins/other/raid +++ b/plugins/other/raid @@ -55,8 +55,8 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) { my $pct = 100 * $nact / $nmem; my $rpct = 100; if ( $pct < 100 ) { - my $output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`; - if( $output =~ /([0-9]+)% complete/ ) { + my @output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`; + if( $output[0] =~ /([0-9]+)% complete/ ) { $rpct = $1; } else { $rpct = 0;