Skip to content

Ignore lost packets in the calculation of statistics #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

handymenny
Copy link
Contributor

@handymenny handymenny commented Apr 18, 2021

I've added some tests here: handymenny@a2ecdf2
Besides the fact that they're too messy, without #66 they will fail

If you don't completely agree with these changes you might as well make it optional, but I think 99% of users don't want TIMEOUT to be considered in the stats.
You might think of a special value when there is 100% packet loss, but in my opinion 0 is fine

If all packets are lost all statistics will be 0
@alessandromaggio
Copy link
Owner

alessandromaggio commented Jun 3, 2021

That is a good point, however it alters the behaviour of the application. We should make this way of computing stats optional if a flag is provided, and in a later breaking version switch it to the default approach. If @handymenny you could add that to your change we could integrate it in the next release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants