summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2023-07-14 14:34:56 -0400
committerWill Hawkins <[email protected]>2023-07-14 14:34:56 -0400
commit0b2e44c50fcb4dd89120ef0608ba09daca12c0f2 (patch)
treee7ecd00be7ca04901b8eea2f4e2e3bed053dce1e
parent443860c41eb8f03981a5671bad0ac4cf2e6491ef (diff)
Use the user-specified percentile for RPM calculations
Despite having parameterized the percentile for RPM calculations, I failed to actually use it when calculating the RPM. Oops. Signed-off-by: Will Hawkins <[email protected]>
-rw-r--r--networkQuality.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/networkQuality.go b/networkQuality.go
index a2933a3..6e1940d 100644
--- a/networkQuality.go
+++ b/networkQuality.go
@@ -894,7 +894,7 @@ Gaming QoO: %.0f
fmt.Printf("Test did not run to stability, these results are estimates:\n")
}
- fmt.Printf("%s RPM: %5.0f (P%d)\n", direction.DirectionLabel, directionResult.PNRpm, 90)
+ fmt.Printf("%s RPM: %5.0f (P%d)\n", direction.DirectionLabel, directionResult.PNRpm, specParameters.Percentile)
fmt.Printf("%s RPM: %5.0f (Single-Sided %v%% Trimmed Mean)\n", direction.DirectionLabel,
directionResult.MeanRpm, specParameters.TrimmedMeanPct)
@@ -943,13 +943,13 @@ Gaming QoO: %.0f
}
}
- result := rpm.CalculateRpm(selfRtts, foreignRtts, specParameters.TrimmedMeanPct, 90)
+ result := rpm.CalculateRpm(selfRtts, foreignRtts, specParameters.TrimmedMeanPct, specParameters.Percentile)
if *debugCliFlag {
fmt.Printf("(Final RPM Calculation stats): %v\n", result.ToString())
}
- fmt.Printf("Final RPM: %5.0f (P%d)\n", result.PNRpm, 90)
+ fmt.Printf("Final RPM: %5.0f (P%d)\n", result.PNRpm, specParameters.Percentile)
fmt.Printf("Final RPM: %5.0f (Single-Sided %v%% Trimmed Mean)\n",
result.MeanRpm, specParameters.TrimmedMeanPct)