mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Mario Kacmar ([email protected])
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user