Fix memory tomcat
This commit is contained in:
parent
419bdc06c4
commit
7d4b4bb288
|
@ -172,12 +172,13 @@ sub manage_selection {
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $total = $result->{memTotal};
|
||||||
$self->{global} = {
|
$self->{global} = {
|
||||||
total => $result->{memTotal},
|
total => $total,
|
||||||
free => $result->{memFree},
|
free => $result->{memFree},
|
||||||
used => $result->{memTotal} - $result->{memFree},
|
used => $total - $result->{memFree},
|
||||||
prct_free => $result->{memFree} * 100 / $result->{memMax},
|
prct_free => $result->{memFree} * 100 / $total,
|
||||||
prct_used => ($result->{memTotal} - $result->{memFree}) * 100 / $result->{memMax},
|
prct_used => ($result->{memTotal} - $result->{memFree}) * 100 / $total,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue