mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 11:21:36 +00:00
parent
8e2107dc39
commit
bb487e3a26
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ package metrics
|
||||||
// ResettingSample converts an ordinary sample into one that resets whenever its
|
// ResettingSample converts an ordinary sample into one that resets whenever its
|
||||||
// snapshot is retrieved. This will break for multi-monitor systems, but when only
|
// snapshot is retrieved. This will break for multi-monitor systems, but when only
|
||||||
// a single metric is being pushed out, this ensure that low-frequency events don't
|
// a single metric is being pushed out, this ensure that low-frequency events don't
|
||||||
// skew th charts indefinitely.
|
// skew the charts indefinitely.
|
||||||
func ResettingSample(sample Sample) Sample {
|
func ResettingSample(sample Sample) Sample {
|
||||||
return &resettingSample{
|
return &resettingSample{
|
||||||
Sample: sample,
|
Sample: sample,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue