Closed rustyhowell closed 7 years ago
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
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