浏览代码

That's not how gauges work.

Richard Crowley 14 年之前
父节点
当前提交
356378cef5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.