Skip to content

Commit 3b60ff4

Browse files
committed
Fix counter modifier
1 parent 4920530 commit 3b60ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/point.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (p *Points) push(name string, value float64, counter bool) {
5858
d := p.getLocked(name)
5959
if counter {
6060
var diff float64
61-
if last := p.last[name]; last > 0 && last < diff {
61+
if last := p.last[name]; last > 0 && last < value {
6262
diff = value - last
6363
}
6464
p.last[name] = value

0 commit comments

Comments
 (0)