Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/query-stats-followup' in…
Browse files Browse the repository at this point in the history
…to staging/query-statistics
  • Loading branch information
awildturtok committed Jan 3, 2024
2 parents cd5027b + 03a97b1 commit 5504c6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static DynamicHistogram create(double min, double max, int expectedBins)
}

public void add(double value) {
final int index = (int) Math.floor((min - value) / width);
final int index = (int) Math.floor((value - min) / width);

if (nodes[index] == null) {
nodes[index] = new Node(new DoubleArrayList());
Expand Down

0 comments on commit 5504c6e

Please sign in to comment.