Browse Source

resolve race condition in maxGauge (#5647)

* resolve race condition in maxGauge

Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@sysdig.com>
pull/5674/head
Dmitry Shmulevich 6 years ago committed by Brian Brazil
parent
commit
0c0638b080
  1. 2
      storage/remote/max_gauge.go

2
storage/remote/max_gauge.go

@ -35,5 +35,7 @@ func (m *maxGauge) Set(value float64) {
}
func (m *maxGauge) Get() float64 {
m.mtx.Lock()
defer m.mtx.Unlock()
return m.value
}

Loading…
Cancel
Save