Author: dgorbachev
Date: Wed May 16 19:52:27 2007
New Revision: 26805
URL:
http://svn.reactos.org/svn/reactos?rev=26805&view=rev
Log:
Do not divide by zero.
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c (original)
+++ trunk/reactos/base/applications/network/ping/ping.c Wed May 16 19:52:27 2007
@@ -606,7 +606,7 @@
}
/* Calculate loss percent */
- Count = (LostCount * 100) / SentCount;
+ Count = SentCount ? (LostCount * 100) / SentCount : 0;
if (!MinRTTSet)
MinRTT = MaxRTT;