Skip to content

Commit

Permalink
DBZ-6998 Revert "DBZ-6998: Align min, max of Histogram/Statistics"
Browse files Browse the repository at this point in the history
This reverts commit 83ab22c.
  • Loading branch information
jpechane committed Oct 30, 2024
1 parent 731ab3e commit 21b19a1
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public void shutdown() {
quantileMeter.shutdown();
}

void set(Duration lastDuration) {
long value = lastDuration.toMillis();
public synchronized void update(long value) {

if (minValue.get() > value) {
minValue.set(value);
}
Expand All @@ -63,10 +63,6 @@ void set(Duration lastDuration) {
quantileMeter.addValue((double) value);
}

public synchronized void update(long value) {
set(Duration.ofMillis(value));
}

public Long getMinValue() {
return count.get() == 0 ? null : minValue.get();
}
Expand Down

0 comments on commit 21b19a1

Please sign in to comment.