Skip to content

Commit

Permalink
Patch bug in avg request latency calcuation (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow authored Oct 17, 2024
1 parent 487e0d9 commit 84446fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/observer_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 84446fd

Please sign in to comment.