From 84446fd3fc73a9d356e4eecf495b65b35c639830 Mon Sep 17 00:00:00 2001 From: colmsnowplow Date: Thu, 17 Oct 2024 14:11:44 +0100 Subject: [PATCH] Patch bug in avg request latency calcuation (#376) --- pkg/models/observer_buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/observer_buffer.go b/pkg/models/observer_buffer.go index b7478891..eaf1d4e5 100644 --- a/pkg/models/observer_buffer.go +++ b/pkg/models/observer_buffer.go @@ -177,7 +177,7 @@ func (b *ObserverBuffer) GetAvgFilterLatency() time.Duration { // GetAvgRequestLatency calculates average request latency func (b *ObserverBuffer) GetAvgRequestLatency() time.Duration { - return common.GetAverageFromDuration(b.SumRequestLatency, b.MsgFiltered) + return common.GetAverageFromDuration(b.SumRequestLatency, b.MsgTotal) } func (b *ObserverBuffer) String() string {