blob: 3b0fb83655264af83763da8707224e2ba3663fa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- iputils-s20070202/ping_common.c 2007-02-02 07:55:46.000000000 -0500
+++ iputils/ping_common.c 2007-10-28 12:19:17.000000000 -0400
@@ -818,7 +820,8 @@
}
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);
@@ -852,4 +855,3 @@
}
fprintf(stderr, "\n");
}
-
|