From: Steve Reinhardt Date: Fri, 24 Oct 2003 01:53:16 +0000 (-0700) Subject: Minor stats fix. X-Git-Tag: m5_1.0_beta2~361^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73b050a541b1778596f9ebffa8a9f780446365c3;p=gem5.git 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 --- 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;