From b2c886f8b297eea946d8d0b770b272bc1edde200 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 21 Sep 2022 16:02:12 +0200 Subject: [PATCH] (plugin) storage::netapp::ontap::restapi - mode volumes usage space calculation (#3910) --- centreon-plugins/storage/netapp/ontap/restapi/mode/volumes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/storage/netapp/ontap/restapi/mode/volumes.pm b/centreon-plugins/storage/netapp/ontap/restapi/mode/volumes.pm index b23574196..2f4d640b6 100644 --- a/centreon-plugins/storage/netapp/ontap/restapi/mode/volumes.pm +++ b/centreon-plugins/storage/netapp/ontap/restapi/mode/volumes.pm @@ -238,7 +238,7 @@ sub manage_selection { total_space => $_->{space}->{size}, used_space => $_->{space}->{used}, free_space => $_->{space}->{available}, - prct_used_space => (defined($_->{space}->{size}) && $_->{space}->{size} > 0) ? $_->{space}->{used} * 100 / $_->{space}->{size} : undef, + prct_used_space => (defined($_->{space}->{size}) && $_->{space}->{size} > 0) ? (($_->{space}->{size} - $_->{space}->{available}) * 100 / $_->{space}->{size}) : undef, prct_free_space => (defined($_->{space}->{size}) && $_->{space}->{size} > 0) ? $_->{space}->{available} * 100 / $_->{space}->{size} : undef, read => $_->{metric}->{throughput}->{read},