Skip to content

Commit

Permalink
Fix counter modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Mar 29, 2018
1 parent 4920530 commit 3b60ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (p *Points) push(name string, value float64, counter bool) {
d := p.getLocked(name)
if counter {
var diff float64
if last := p.last[name]; last > 0 && last < diff {
if last := p.last[name]; last > 0 && last < value {
diff = value - last
}
p.last[name] = value
Expand Down

0 comments on commit 3b60ff4

Please sign in to comment.