Author: hpoussin
Date: Thu Jun 1 22:27:08 2006
New Revision: 22156
URL:
http://svn.reactos.ru/svn/reactos?rev=22156&view=rev
Log:
Fix calculation of loss percentage
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/network/p…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c (original)
+++ trunk/reactos/base/applications/network/ping/ping.c Thu Jun 1 22:27:08 2006
@@ -606,11 +606,7 @@
}
/* Calculate loss percent */
- if (LostCount > 0) {
- Count = (SentCount * 100) / LostCount;
- } else {
- Count = 0;
- }
+ Count = (LostCount * 100) / SentCount;
if (!MinRTTSet)
MinRTT = MaxRTT;