Skip to content

Commit

Permalink
fix test & use /= 2 instead of bitshift
Browse files Browse the repository at this point in the history
  • Loading branch information
euroelessar committed Dec 17, 2024
1 parent 01ceeb5 commit 394b85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions processor/deltatocumulativeprocessor/internal/data/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func getDeltaScale(arel, brel pmetric.ExponentialHistogramDataPointBuckets) expo

var deltaScale expo.Scale
for up-lo > maxBuckets {
lo >>= 1
up >>= 1
lo /= 2
up /= 2
deltaScale++
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resourceMetrics:
scale: 1
zeroCount: 0
positive:
bucketCounts: [0,0,0,0,0]
bucketCounts: []

-- out --
resourceMetrics:
Expand Down

0 comments on commit 394b85a

Please sign in to comment.