Skip to content

Commit

Permalink
fixed histogram merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Jul 9, 2024
1 parent d5fb341 commit 3f62e95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ func (h *Histogram) Merge(b *Histogram) {
if h.decimalBuckets[i] == nil {
var b [bucketsPerDecimal]uint64
h.decimalBuckets[i] = &b
}
for j := range db {
h.decimalBuckets[i][j] = db[j]
} else {
for j := range db {
h.decimalBuckets[i][j] += db[j]

Check warning on line 133 in histogram.go

View check run for this annotation

Codecov / codecov/patch

histogram.go#L131-L133

Added lines #L131 - L133 were not covered by tests
}
}
}
}
Expand Down

0 comments on commit 3f62e95

Please sign in to comment.