summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2021-12-16 20:55:40 -0500
committerWill Hawkins <[email protected]>2021-12-16 20:55:40 -0500
commit69bb03f79251a728d68a4973ce99de69e4a4db6d (patch)
tree168d2542188fc09d15d402cbeaefbb60f796a554
parenta85532c22a53d458846f722caa202c7396a3167f (diff)
Bugfix: Calculation of RPM was off by a factor of 5
The factor of five being included to account for the fact that a single test accumulated five RTTs was being applied twice. This patch fixes that.
-rw-r--r--networkQuality.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/networkQuality.go b/networkQuality.go
index 762ca67..ef80d03 100644
--- a/networkQuality.go
+++ b/networkQuality.go
@@ -412,7 +412,7 @@ func main() {
fmt.Printf("Upload: %f MBps (%f Mbps), using %d parallel connections.\n", toMBps(uploadSaturation.RateBps), toMbps(uploadSaturation.RateBps), len(uploadSaturation.Lbcs))
if totalRTTsCount != 0 {
- rpm := float64(60) / (totalRTTTime / (float64(totalRTTsCount) * 5))
+ rpm := float64(60) / (totalRTTTime / (float64(totalRTTsCount)))
fmt.Printf("Total RTTs measured: %d\n", totalRTTsCount)
fmt.Printf("RPM: %v\n", rpm)
} else {