Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1104888] fix bucket aggregation code for calculating max
Browse files Browse the repository at this point in the history
  • Loading branch information
John Sanda committed Jun 5, 2014
1 parent cd6888f commit 447934e
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ public Bucket insert(double value, double min, double max) {
if (count == 0) {
this.min = min;
this.max = max;
} else if (min < this.min) {
this.min = min;
} else if (max > this.max) {
this.max = max;
} else {
if (min < this.min) {
this.min = min;
}
if (max > this.max) {
this.max = max;
}
}
count++;
return this;
Expand Down

0 comments on commit 447934e

Please sign in to comment.