Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/metricemitter/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m *Gauge) Increment(value float64) {

// Decrement decrements the gauge by a specified value.
func (m *Gauge) Decrement(value float64) {
atomic.AddUint64(&m.value, toUint64(-value, 2))
atomic.AddUint64(&m.value, ^uint64(toUint64(value, 2)-1))
}

// GetValue atomically returns the current value of the gauge.
Expand Down
Loading