From 73b050a541b1778596f9ebffa8a9f780446365c3 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 23 Oct 2003 18:53:16 -0700 Subject: [PATCH] Minor stats fix. base/statistics.cc: Small fix: don't exit early out of dist when nozero is set and a zero val is found. --HG-- extra : convert_revision : 95ba3328c8a79f05f4c821d99071dba10f013ad6 --- base/statistics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/statistics.cc b/base/statistics.cc index 6593451c4..cde98d861 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -846,7 +846,7 @@ DistDisplay(ostream &stream, const string &name, const string &desc, for (int i = 0; i < size; ++i) { if (flags & nozero && vec[i] == 0.0 || flags & nonan && isnan(vec[i])) - return; + continue; _min = i * bucket_size + min; _pdf = vec[i] / total * 100.0;