Commit ce5ebda5 authored by Roman Proskuryakov's avatar Roman Proskuryakov

Fix outdated comment for Meter::Reset

parent e9e2aa6a
...@@ -57,7 +57,7 @@ func (m *Meter) Snapshot() Snapshot { ...@@ -57,7 +57,7 @@ func (m *Meter) Snapshot() Snapshot {
return m.snapshot return m.snapshot
} }
// Reset sets accumulator, total and rate to zero and last update to current time. // Reset sets accumulator, total and rate to zero.
func (m *Meter) Reset() { func (m *Meter) Reset() {
globalSweeper.snapshotMu.Lock() globalSweeper.snapshotMu.Lock()
atomic.StoreUint64(&m.accumulator, 0) atomic.StoreUint64(&m.accumulator, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment