mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
+ Fix indent
This commit is contained in:
parent
dd764be93d
commit
bd25d9f34b
@ -102,7 +102,7 @@ sub build_values {
|
|||||||
#if ($options{current} =~ /^$oid_inputs\.(.*)/) {
|
#if ($options{current} =~ /^$oid_inputs\.(.*)/) {
|
||||||
if ($options{current} =~ /^$oid\.(.*)/) {
|
if ($options{current} =~ /^$oid\.(.*)/) {
|
||||||
$instance = $1;
|
$instance = $1;
|
||||||
#$instance =~ s/1\.1\.3\.//g;
|
#$instance =~ s/1\.1\.3\.//g;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ sub build_values {
|
|||||||
$self->{instances_done}->{$instance} = 1;
|
$self->{instances_done}->{$instance} = 1;
|
||||||
$self->{counters_value}->{$instance} = {};
|
$self->{counters_value}->{$instance} = {};
|
||||||
foreach my $oid (keys %oids) {
|
foreach my $oid (keys %oids) {
|
||||||
my $full_oid = $oid . '.' . $instance;
|
my $full_oid = $oid . '.' . $instance;
|
||||||
$self->{counters_value}->{$instance}->{$oids{$oid}->{counter}} = defined($options{result}->{$oid . '.' . $instance}) ? $options{result}->{$oid . '.' . $instance} : 0;
|
$self->{counters_value}->{$instance}->{$oids{$oid}->{counter}} = defined($options{result}->{$oid . '.' . $instance}) ? $options{result}->{$oid . '.' . $instance} : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user