Fix calculation of loss percentage

svn path=/trunk/; revision=22156
This commit is contained in:
Hervé Poussineau 2006-06-01 18:27:08 +00:00
parent b1fe06cdfe
commit 4ac695afb3

View file

@ -606,11 +606,7 @@ int main(int argc, char* argv[])
}
/* Calculate loss percent */
if (LostCount > 0) {
Count = (SentCount * 100) / LostCount;
} else {
Count = 0;
}
Count = (LostCount * 100) / SentCount;
if (!MinRTTSet)
MinRTT = MaxRTT;