From ccc2480fc28b31d8e4259a8713ee36e0de231164 Mon Sep 17 00:00:00 2001 From: fv Date: Wed, 4 Aug 2010 16:45:20 +0200 Subject: [PATCH] typo line 71 --- plugins/other/raid | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/plugins/other/raid b/plugins/other/raid index abb0c4d4..43c020c0 100755 --- a/plugins/other/raid +++ b/plugins/other/raid @@ -61,15 +61,15 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) my $rpct = 100; if ( $pct < 100 ) { - my $output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`; - if( $output =~ /([0-9]+)% complete/ ) - { - $rpct = $1; - } - else - { - $rcpt = 0; - } + my $output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`; + if( $output =~ /([0-9]+)% complete/ ) + { + $rpct = $1; + } + else + { + $rpct = 0; + } } print "$dev.value $pct\n"; print $dev, "_rebuild.value $rpct\n"; @@ -79,4 +79,3 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) } exit 0; -