From 950bbc8f2f9c580ac85bef7bab9a3ae36ea99c4b Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 13 Jun 2018 22:41:02 +0200 Subject: [PATCH] Print UDP RTT on its own line. --- src/info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/info.c b/src/info.c index f0dce8c..562b5ff 100644 --- a/src/info.c +++ b/src/info.c @@ -145,10 +145,6 @@ static int info_node(int fd, const char *item) { if(status.udp_confirmed) { printf(" udp_confirmed"); - - if(udp_ping_rtt != -1) { - printf(" (rtt %d.%03d)", udp_ping_rtt / 1000, udp_ping_rtt % 1000); - } } printf("\n"); @@ -185,6 +181,10 @@ static int info_node(int fd, const char *item) { printf("unknown\n"); } else if(minmtu > 0) { printf("directly with UDP\nPMTU: %d\n", pmtu); + + if(udp_ping_rtt != -1) { + printf("RTT: %d.%03d\n", udp_ping_rtt / 1000, udp_ping_rtt % 1000); + } } else if(!strcmp(nexthop, item)) { printf("directly with TCP\n"); } else { -- 2.25.1