(plugin) storage::netapp::ontap::restapi - mode volumes usage space calculation (#3910)

This commit is contained in:
qgarnier 2022-09-21 16:02:12 +02:00 committed by GitHub
parent 9918f8f709
commit b2c886f8b2
1 changed files with 1 additions and 1 deletions

View File

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