mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
+ Fix free percent value in aix snmp swap mode
This commit is contained in:
parent
c294d6c18d
commit
ffd9350025
@ -144,7 +144,7 @@ sub run {
|
||||
short_msg => sprintf("Page space '%s' Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)", $swap_name,
|
||||
$total_size_value . " " . $total_size_unit,
|
||||
$total_used_value . " " . $total_used_unit, $total_used * 100 / $swap_total,
|
||||
$total_free_value . " " . $total_free_unit, 100 - ($total_used * 100 / $results->{$aix_swap_pool}->{$aix_swap_total . "." . $_})));
|
||||
$total_free_value . " " . $total_free_unit, 100 - ($total_used * 100 / $swap_total)));
|
||||
}
|
||||
|
||||
$self->{output}->output_add(long_msg => sprintf("Page space '%s' Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)", $swap_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user