mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 10:58:12 +00:00
typo line 71
This commit is contained in:
parent
8627d99642
commit
ccc2480fc2
1 changed files with 9 additions and 10 deletions
|
@ -61,15 +61,15 @@ if ( $ARGV[0] and $ARGV[0] eq "config" )
|
||||||
my $rpct = 100;
|
my $rpct = 100;
|
||||||
if ( $pct < 100 )
|
if ( $pct < 100 )
|
||||||
{
|
{
|
||||||
my $output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`;
|
my $output = `/sbin/mdadm -D /dev/$dev | grep Rebuild`;
|
||||||
if( $output =~ /([0-9]+)% complete/ )
|
if( $output =~ /([0-9]+)% complete/ )
|
||||||
{
|
{
|
||||||
$rpct = $1;
|
$rpct = $1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$rcpt = 0;
|
$rpct = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "$dev.value $pct\n";
|
print "$dev.value $pct\n";
|
||||||
print $dev, "_rebuild.value $rpct\n";
|
print $dev, "_rebuild.value $rpct\n";
|
||||||
|
@ -79,4 +79,3 @@ if ( $ARGV[0] and $ARGV[0] eq "config" )
|
||||||
}
|
}
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue