mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Use SlidingTimeWindowArray instead of using resetting ExpDecaySample for latency histograms
This commit is contained in:
parent
852baee5d0
commit
00e202f693
1 changed files with 1 additions and 3 deletions
|
|
@ -33,9 +33,7 @@ type Sample interface {
|
|||
}
|
||||
|
||||
func NewBoundedHistogramSample() Sample {
|
||||
return ResettingSample(
|
||||
NewExpDecaySample(1028, 0.015),
|
||||
)
|
||||
return NewSlidingTimeWindowArraySample(time.Minute * 1)
|
||||
}
|
||||
|
||||
// ExpDecaySample is an exponentially-decaying sample using a forward-decaying
|
||||
|
|
|
|||
Loading…
Reference in a new issue