summaryrefslogtreecommitdiff
path: root/base/statistics.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2003-10-23 18:53:16 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2003-10-23 18:53:16 -0700
commit73b050a541b1778596f9ebffa8a9f780446365c3 (patch)
tree840d398cdd4d5e70082d45b9d464e21d909ed177 /base/statistics.cc
parent21c7ee1e3ef10cc1ace8d6f29f41c18358b8c0f4 (diff)
downloadgem5-73b050a541b1778596f9ebffa8a9f780446365c3.tar.xz
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
Diffstat (limited to 'base/statistics.cc')
-rw-r--r--base/statistics.cc2
1 files changed, 1 insertions, 1 deletions
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;