(plugin) storage::netapp::ontap::restapi - mode volumes fix latency metrics unit (#3968)
This commit is contained in:
parent
8493155d6f
commit
659f053768
|
@ -249,15 +249,15 @@ sub manage_selection {
|
|||
write_iops => $_->{metric}->{iops}->{write},
|
||||
other_iops => $_->{metric}->{iops}->{other},
|
||||
total_iops => $_->{metric}->{iops}->{total},
|
||||
read_latency => $_->{metric}->{latency}->{read},
|
||||
write_latency => $_->{metric}->{latency}->{write},
|
||||
other_latency => $_->{metric}->{latency}->{other},
|
||||
total_latency => $_->{metric}->{latency}->{total}
|
||||
read_latency => $_->{metric}->{latency}->{read} / 1000,
|
||||
write_latency => $_->{metric}->{latency}->{write} / 1000,
|
||||
other_latency => $_->{metric}->{latency}->{other} / 1000,
|
||||
total_latency => $_->{metric}->{latency}->{total} / 1000
|
||||
};
|
||||
}
|
||||
|
||||
if (scalar(keys %{$self->{volumes}}) <= 0) {
|
||||
$self->{output}->add_option_msg(short_msg => "No volume found");
|
||||
$self->{output}->add_option_msg(short_msg => 'No volume found');
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue