Return dummy data for empty histograms

pull/2167/head
Craig Tiller 10 years ago
parent 8222b19eb1
commit 80ca516640
  1. 4
      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;

Loading…
Cancel
Save