From 80ca516640c068f85e8523c50c74d8e790c7bd9c Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Mon, 22 Jun 2015 14:31:44 -0700
Subject: [PATCH] Return dummy data for empty histograms

---
 src/core/support/histogram.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/core/support/histogram.c b/src/core/support/histogram.c
index 673affde71..d16ea6c3f7 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;
-- 
GitLab