Skip to content

Commit

Permalink
Merge pull request #1407 from mattrjacobs/reset-percentile-snapshot-w…
Browse files Browse the repository at this point in the history
…hen-advancing-all-buckets

Clear the percentile snapshot whenever all buckets get cleared
  • Loading branch information
mattrjacobs committed Oct 27, 2016
2 parents e7d23a3 + c4cd610 commit b0f5152
Showing 1 changed file with 3 additions and 0 deletions.
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 b0f5152

Please sign in to comment.