From c93527285c90db29c16acc803291e0fe55977c99 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 30 Apr 2020 14:55:40 +0200 Subject: [PATCH] Fix UDP ping --- apps/protocols/snmp/mode/responsetime.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/protocols/snmp/mode/responsetime.pm b/apps/protocols/snmp/mode/responsetime.pm index e2b65393a..c1a70cdda 100644 --- a/apps/protocols/snmp/mode/responsetime.pm +++ b/apps/protocols/snmp/mode/responsetime.pm @@ -127,7 +127,7 @@ sub manage_selection { } $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, rtmin => $min_time_elapsed * 1000, pl => int($total_packet_lost * 100 / $self->{option_packets}),