From 0b2e44c50fcb4dd89120ef0608ba09daca12c0f2 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 14 Jul 2023 14:34:56 -0400 Subject: 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 --- networkQuality.go | 6 +++--- 1 file 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) -- cgit v1.2.3