Fix memory tomcat

This commit is contained in:
garnier-quentin 2019-07-10 10:41:59 +02:00
parent 419bdc06c4
commit 7d4b4bb288
1 changed files with 5 additions and 4 deletions

View File

@ -172,12 +172,13 @@ sub manage_selection {
$self->{output}->option_exit();
}
my $total = $result->{memTotal};
$self->{global} = {
total => $result->{memTotal},
total => $total,
free => $result->{memFree},
used => $result->{memTotal} - $result->{memFree},
prct_free => $result->{memFree} * 100 / $result->{memMax},
prct_used => ($result->{memTotal} - $result->{memFree}) * 100 / $result->{memMax},
used => $total - $result->{memFree},
prct_free => $result->{memFree} * 100 / $total,
prct_used => ($result->{memTotal} - $result->{memFree}) * 100 / $total,
};
};