Skip to content
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

droprate is a 0-1 scale; use 1.0 for failure #5

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

mattmichal
Copy link
Contributor

DropRate is calculated on a 0.0 to 1.0 scale when an ICMP is successful. If it's a failure, the DropRate should be set to 1.0 instead of 100.0 so that the scale remains the same in all cases.

@syepes
Copy link
Owner

syepes commented Jul 29, 2021

Great suggestion, I completely missed that the other values were already using the range 0.0-1.0.
Thanks

@syepes syepes merged commit c6f8aee into syepes:master Jul 29, 2021
@mattmichal mattmichal deleted the fix-failed-icmp-droprate branch July 29, 2021 20:31
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