aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/histogram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/util/histogram.cc')
-rw-r--r--test/core/util/histogram.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/util/histogram.cc b/test/core/util/histogram.cc
index 6eb0342ede..f028ac404e 100644
--- a/test/core/util/histogram.cc
+++ b/test/core/util/histogram.cc
@@ -74,7 +74,8 @@ static double bucket_start(grpc_histogram* h, double x) {
grpc_histogram* grpc_histogram_create(double resolution,
double max_bucket_start) {
- grpc_histogram* h = static_cast<grpc_histogram*>(gpr_malloc(sizeof(grpc_histogram)));
+ grpc_histogram* h =
+ static_cast<grpc_histogram*>(gpr_malloc(sizeof(grpc_histogram)));
GPR_ASSERT(resolution > 0.0);
GPR_ASSERT(max_bucket_start > resolution);
h->sum = 0.0;
@@ -88,7 +89,8 @@ grpc_histogram* grpc_histogram_create(double resolution,
h->num_buckets = bucket_for_unchecked(h, max_bucket_start) + 1;
GPR_ASSERT(h->num_buckets > 1);
GPR_ASSERT(h->num_buckets < 100000000);
- h->buckets = static_cast<uint32_t*>(gpr_zalloc(sizeof(uint32_t) * h->num_buckets));
+ h->buckets =
+ static_cast<uint32_t*>(gpr_zalloc(sizeof(uint32_t) * h->num_buckets));
return h;
}