Fix UDP ping

This commit is contained in:
UrBnW 2020-04-30 14:55:40 +02:00 committed by Lotfi zaouche
parent 9315916aad
commit d459c18231
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ sub manage_selection {
} }
$self->{global} = { $self->{global} = {
rta => $total_time_elapsed * 1000 / $self->{option_packets}, rta => $total_time_elapsed * 1000 / ($self->{option_packets} - $total_packet_lost),
rtmax => $max_time_elapsed * 1000, rtmax => $max_time_elapsed * 1000,
rtmin => $min_time_elapsed * 1000, rtmin => $min_time_elapsed * 1000,
pl => int($total_packet_lost * 100 / $self->{option_packets}), pl => int($total_packet_lost * 100 / $self->{option_packets}),