- Print no approximate round trip times on 100% loss like Windows does

See issue #2542 for more details.

svn path=/trunk/; revision=35371
This commit is contained in:
Colin Finck
2008-08-16 10:44:53 +00:00
parent 5f8b05dfa8
commit 9fb87bbf79
@@ -644,9 +644,13 @@ int main(int argc, char* argv[])
printf("\nPing statistics for %s:\n", TargetIP);
printf(" Packets: Sent = %d, Received = %d, Lost = %d (%d%% loss),\n",
SentCount, SentCount - LostCount, LostCount, Count);
printf("Approximate round trip times in milli-seconds:\n");
printf(" Minimum = %s, Maximum = %s, Average = %s\n",
MinTime, MaxTime, AvgTime);
/* Print approximate times or NO approximate times if 100% loss */
if ((SentCount - LostCount) > 0)
{
printf("Approximate round trip times in milli-seconds:\n");
printf(" Minimum = %s, Maximum = %s, Average = %s\n",
MinTime, MaxTime, AvgTime);
}
}
return 0;
}