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},