Fix SetREMA() -- increments m.samples so it doesn't get reset

This commit is contained in:
Jae Kwon 2015-09-12 08:47:15 -07:00
parent b468baf7ac
commit 6e27837cbf
1 changed files with 1 additions and 0 deletions

View File

@ -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()
}