From: Guus Sliepen Date: Wed, 13 Jun 2018 20:41:02 +0000 (+0200) Subject: Print UDP RTT on its own line. X-Git-Tag: release-1.1pre17~14 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=950bbc8f2f9c580ac85bef7bab9a3ae36ea99c4b;p=tinc Print UDP RTT on its own line. --- diff --git a/src/info.c b/src/info.c index f0dce8c6..562b5ff2 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 {