From df37c3e0d572ff3b4b4de3e9919402e8e0ccf971 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 14 Jul 2023 10:55:02 -0400 Subject: Parameterize Percentile in RPM Calculations Make the percentile used by RPM calculations user-controlled. Note: A percentile-based calculation is not part of the spec. This is an optional feature. Signed-off-by: Will Hawkins --- rpm/calculations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpm/calculations.go') diff --git a/rpm/calculations.go b/rpm/calculations.go index 4b61413..8b3cf92 100644 --- a/rpm/calculations.go +++ b/rpm/calculations.go @@ -36,7 +36,7 @@ type Rpm[Data utilities.Number] struct { } func CalculateRpm[Data utilities.Number, Bucket constraints.Ordered]( - selfRtts series.WindowSeries[Data, Bucket], aggregatedForeignRtts series.WindowSeries[Data, Bucket], trimming uint, percentile int, + selfRtts series.WindowSeries[Data, Bucket], aggregatedForeignRtts series.WindowSeries[Data, Bucket], trimming uint, percentile uint, ) Rpm[Data] { // There may be more than one round trip accumulated together. If that is the case, // we will blow them apart in to three separate measurements and each one will just -- cgit v1.2.3