summaryrefslogtreecommitdiff
path: root/rpm/calculations.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2023-07-14 10:55:02 -0400
committerWill Hawkins <[email protected]>2023-07-14 10:58:51 -0400
commitdf37c3e0d572ff3b4b4de3e9919402e8e0ccf971 (patch)
tree62e35137fa3d233f5506804775b6c71e728e71c3 /rpm/calculations.go
parent399eda676f7889accf72231c6696b89de7ea3fae (diff)
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 <[email protected]>
Diffstat (limited to 'rpm/calculations.go')
-rw-r--r--rpm/calculations.go2
1 files changed, 1 insertions, 1 deletions
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