Explorar o código

That's not how gauges work.

Richard Crowley %!s(int64=15) %!d(string=hai) anos
pai
achega
356378cef5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gauge.go

+ 1 - 1
gauge.go

@@ -26,7 +26,7 @@ func NewGauge() Gauge {
 
 // Update the gauge's value.
 func (g *StandardGauge) Update(v int64) {
-	atomic.AddInt64(&g.value, v)
+	g.value = v
 }
 
 // Return the gauge's current value.