Update memory.pm

This commit is contained in:
cgagnaire 2017-02-06 13:10:44 +01:00 committed by GitHub
parent eafe7382ad
commit c1c235b7b1
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ sub run {
my $result = $self->{snmp}->get_leef(oids => $oids,
nothing_quit => 1);
my $free_size = $result->{$oid_raisecomAvailableMemory} * 1024;
my $total_size = $result->{$oid_raisecomTotalMemory} * 1024;
my $free_size = $result->{$oid_raisecomAvailableMemory};
my $total_size = $result->{$oid_raisecomTotalMemory};
my $used_size = $total_size - $free_size;
my $prct_used = $used_size * 100 / $total_size;