projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c7ee1
)
Minor stats fix.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Fri, 24 Oct 2003 01:53:16 +0000
(18:53 -0700)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Fri, 24 Oct 2003 01:53:16 +0000
(18:53 -0700)
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
patch
|
blob
|
history
diff --git
a/base/statistics.cc
b/base/statistics.cc
index 6593451c4967a5d8bf95070dfbed35c87a6450b9..cde98d8619fcd5f3623b19cbe9e1c0b9ac11ea9d 100644
(file)
--- 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;