Print the ipg/ewma statistics only if we received at least one response. Written-by: Radek Vokal --- iputils/ping_common.c.OLD 2006-02-06 10:34:35.000000000 +0100 +++ iputils/ping_common.c 2006-02-06 10:34:35.000000000 +0100 @@ -819,7 +819,7 @@ } if (pipesize > 1) printf(", pipe %d", pipesize); - if (ntransmitted > 1 && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) { + if (ntransmitted > 1 && nreceived && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) { int ipg = (1000000*(long long)tv.tv_sec+tv.tv_usec)/(ntransmitted-1); printf(", ipg/ewma %d.%03d/%d.%03d ms", ipg/1000, ipg%1000, rtt/8000, (rtt/8)%1000);