+ indentation fix
This commit is contained in:
parent
31560c5c67
commit
6e1f781c73
|
@ -107,7 +107,6 @@ my $mapping1 = {
|
||||||
trpzClSessClientSessSsid => { oid => '.1.3.6.1.4.1.14525.4.4.1.1.1.1.15' },
|
trpzClSessClientSessSsid => { oid => '.1.3.6.1.4.1.14525.4.4.1.1.1.1.15' },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
@ -146,8 +145,7 @@ sub manage_selection {
|
||||||
$self->{ap}->{$ap_name} = { total => 0, display => $ap_name } if (!defined($self->{ap}->{$ap_name}));
|
$self->{ap}->{$ap_name} = { total => 0, display => $ap_name } if (!defined($self->{ap}->{$ap_name}));
|
||||||
$self->{ap}->{$ap_name}->{total}++;
|
$self->{ap}->{$ap_name}->{total}++;
|
||||||
$self->{ssid}->{$result1->{trpzClSessClientSessSsid}} = { total => 0, display => $result1->{trpzClSessClientSessSsid} } if (!defined($self->{ssid}->{$result1->{trpzClSessClientSessSsid}}));
|
$self->{ssid}->{$result1->{trpzClSessClientSessSsid}} = { total => 0, display => $result1->{trpzClSessClientSessSsid} } if (!defined($self->{ssid}->{$result1->{trpzClSessClientSessSsid}}));
|
||||||
$self->{ssid}->{$result1->{trpzClSessClientSessSsid}}->{total}++
|
$self->{ssid}->{$result1->{trpzClSessClientSessSsid}}->{total}++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scalar(keys %{$self->{ap}}) <= 0 && scalar(keys %{$self->{ssid}}) <= 0) {
|
if (scalar(keys %{$self->{ap}}) <= 0 && scalar(keys %{$self->{ssid}}) <= 0) {
|
||||||
|
|
|
@ -85,7 +85,6 @@ sub prefix_flash_output {
|
||||||
return "Flash ";
|
return "Flash ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||||
|
@ -102,9 +101,7 @@ sub new {
|
||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my $total_bytes;
|
my ($total_bytes, $used_bytes, $free_bytes);
|
||||||
my $used_bytes;
|
|
||||||
my $free_bytes;
|
|
||||||
|
|
||||||
# TRAPEZE-NETWORKS-SYSTEM-MIB
|
# TRAPEZE-NETWORKS-SYSTEM-MIB
|
||||||
my $oid_trpzSysFlashMemoryUsedBytes = '.1.3.6.1.4.1.14525.4.8.1.1.3.0';
|
my $oid_trpzSysFlashMemoryUsedBytes = '.1.3.6.1.4.1.14525.4.8.1.1.3.0';
|
||||||
|
@ -143,7 +140,6 @@ sub manage_selection {
|
||||||
free => $free_bytes_flash,
|
free => $free_bytes_flash,
|
||||||
total => $results->{$oid_trpzSysFlashMemoryTotalBytes},
|
total => $results->{$oid_trpzSysFlashMemoryTotalBytes},
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in New Issue