diff options
author | 2015-06-25 07:00:18 -0700 | |
---|---|---|
committer | 2015-06-25 07:00:18 -0700 | |
commit | fe8592ee994343821c8c4e906ee3bef3b4444e34 (patch) | |
tree | a0f1fa88e0ddeb4092567adc51184ac88f0ab78b /src/core/support/histogram.c | |
parent | f75fc12e3a1a614ee2d5d565742764e47d9aef96 (diff) | |
parent | 0bf7e48ade52eec336f50dee4c7d22eeb887bb8e (diff) |
Merge github.com:grpc/grpc into are-includes-sane
Conflicts:
tools/doxygen/Doxyfile.c++.internal
Diffstat (limited to 'src/core/support/histogram.c')
-rw-r--r-- | src/core/support/histogram.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/support/histogram.c b/src/core/support/histogram.c index 2f1adcf511..9029703891 100644 --- a/src/core/support/histogram.c +++ b/src/core/support/histogram.c @@ -164,7 +164,9 @@ static double threshold_for_count_below(gpr_histogram *h, double count_below) { size_t lower_idx; size_t upper_idx; - GPR_ASSERT(h->count >= 1); + if (h->count == 0) { + return 0.0; + } if (count_below <= 0) { return h->min_seen; |