Skip to content

Commit

Permalink
Clear the percentile snapshot whenever all buckets get cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Oct 27, 2016
1 parent e7d23a3 commit c4cd610
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ public void reset() {

// clear buckets so we start over again
buckets.clear();

// and also make sure the percentile snapshot gets reset
currentPercentileSnapshot = new PercentileSnapshot(buckets.getArray());
}

/* package-private for testing */ static class PercentileBucketData {
Expand Down

0 comments on commit c4cd610

Please sign in to comment.