This commit is contained in:
garnier-quentin 2014-05-09 17:27:47 +02:00
parent e06e413d86
commit 43f885fc2b
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ sub range_perfdata {
return if ($self->{range_perfdata} == 0); return if ($self->{range_perfdata} == 0);
if ($self->{range_perfdata} == 1) { if ($self->{range_perfdata} == 1) {
for (my $i = 0; $i < scalar(@{$options{ranges}}); $i++) { for (my $i = 0; $i < scalar(@{$options{ranges}}); $i++) {
${${$options{ranges}}[$i]} =~ s/^(@)?-?[0\.]+:/$1/; ${${$options{ranges}}[$i]} =~ s/^(@?)-?[0\.]+:/$1/;
} }
} else { } else {
for (my $i = 0; $i < scalar(@{$options{ranges}}); $i++) { for (my $i = 0; $i < scalar(@{$options{ranges}}); $i++) {