diff options
| author | Will Hawkins <[email protected]> | 2023-07-14 14:34:56 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2023-07-14 14:34:56 -0400 |
| commit | 0b2e44c50fcb4dd89120ef0608ba09daca12c0f2 (patch) | |
| tree | e7ecd00be7ca04901b8eea2f4e2e3bed053dce1e | |
| parent | 443860c41eb8f03981a5671bad0ac4cf2e6491ef (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.go | 6 |
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) |
