mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Fix calculation of loss percentage
svn path=/trunk/; revision=22156
This commit is contained in:
parent
b1fe06cdfe
commit
4ac695afb3
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue