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

Fix calculation in Mpbs vs MB_s #19

Merged
merged 3 commits into from
Aug 2, 2017
Merged

Conversation

rustyhowell
Copy link
Contributor

I was getting conflicting Mbits/sec results from iperf3-python vs iperf3 on the command line. After investigation, I found the math error.

Commit msg:
When measuring in bits (kbps and Mbps), use k == 1000, M == 1000000
When measuring in bytes (kB_s and MB_s), use k == 1024, M == 1024**2

Also added a unittest for this calculation

rustyhowell-c4 and others added 3 commits June 28, 2017 09:41
When measuring in bits (kbps and Mbps), use k == 1000, M == 1000000
When measuring in bytes (kB_s and MBps), use k == 1024, M == 1024**2

Also added a unittest for this calculation
@coveralls
Copy link

coveralls commented Jun 28, 2017

Coverage Status

Coverage decreased (-1.4%) to 97.288% when pulling c0d2844 on rustyhowell:master into cba75c1 on thiezn:master.

@coveralls
Copy link

coveralls commented Jun 28, 2017

Coverage Status

Coverage remained the same at 98.644% when pulling c0d2844 on rustyhowell:master into cba75c1 on thiezn:master.

@thiezn
Copy link
Owner

thiezn commented Aug 2, 2017

Thanks @rustyhowell you are right, I got my bits mixed up here. The world should all just agree 1k is 1024 but I guess we'll have to settle. I'll merge your changes and push out a new version to PyPi later today

@thiezn thiezn closed this Aug 2, 2017
@thiezn thiezn merged commit 36c9347 into thiezn:master Aug 2, 2017
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.

None yet

4 participants