We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6494f3c + 4b6d1e5 commit ed7f3e0Copy full SHA for ed7f3e0
src/lib.rs
@@ -1276,8 +1276,7 @@ impl<T: Counter> Histogram<T> {
1276
/// Or, equivalently, we need 1 more bucket to capture the max value if we consider the
1277
/// sub-bucket length to be halved.
1278
fn num_bins(&self, number_of_buckets: u8) -> u32 {
1279
- // TODO use sub_bucket_half_count
1280
- (number_of_buckets as u32 + 1) * (self.sub_bucket_count / 2)
+ (number_of_buckets as u32 + 1) * (self.sub_bucket_half_count)
1281
}
1282
1283
/// Compute the number of buckets needed to cover the given value, as well as the total number
0 commit comments