diff options
author | Nathan Binkert <nate@binkert.org> | 2009-03-05 19:09:53 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-03-05 19:09:53 -0800 |
commit | 244c2a517a48a0985091397bed6a754cb2e2e1a5 (patch) | |
tree | 86f676861612f03dba0e401aff7478dc8adbb84f /src/base/stats/text.cc | |
parent | e19fd1d521cd8444a52374392643ebf8be0b6c09 (diff) | |
download | gem5-244c2a517a48a0985091397bed6a754cb2e2e1a5.tar.xz |
stats: stick the distribution's fancy parameter into the parameters structure.
Diffstat (limited to 'src/base/stats/text.cc')
-rw-r--r-- | src/base/stats/text.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc index 3a00620c7..6c2078bd0 100644 --- a/src/base/stats/text.cc +++ b/src/base/stats/text.cc @@ -673,12 +673,11 @@ Text::visit(const DistInfoBase &info) print.squares = data.squares; print.samples = data.samples; - print.fancy = data.fancy; - - if (!data.fancy) { - const DistStor::Params *params = - safe_cast<const DistStor::Params *>(info.storageParams); + const DistStor::Params *params = + safe_cast<const DistStor::Params *>(info.storageParams); + print.fancy = params->fancy; + if (!params->fancy) { print.min = params->min; print.max = params->max; print.bucket_size = params->bucket_size; @@ -716,11 +715,11 @@ Text::visit(const VectorDistInfoBase &info) print.squares = info.data[i].squares; print.samples = info.data[i].samples; - print.fancy = info.data[i].fancy; - if (!print.fancy) { - const DistStor::Params *params = - safe_cast<const DistStor::Params *>(info.storageParams); + const DistStor::Params *params = + safe_cast<const DistStor::Params *>(info.storageParams); + print.fancy = params->fancy; + if (!params->fancy) { print.min = params->min; print.max = params->max; print.bucket_size = params->bucket_size; |