mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-01 20:06:21 +00:00
Fix SetREMA() -- increments m.samples so it doesn't get reset
This commit is contained in:
1
Godeps/_workspace/src/code.google.com/p/mxk/go1/flowcontrol/flowcontrol.go
generated
vendored
1
Godeps/_workspace/src/code.google.com/p/mxk/go1/flowcontrol/flowcontrol.go
generated
vendored
@@ -76,6 +76,7 @@ func (m *Monitor) Update(n int) int {
|
||||
func (m *Monitor) SetREMA(rEMA float64) {
|
||||
m.mu.Lock()
|
||||
m.rEMA = rEMA
|
||||
m.samples++
|
||||
m.mu.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user