summaryrefslogtreecommitdiff
path: root/src/base/stats/text.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-03-05 19:09:53 -0800
committerNathan Binkert <nate@binkert.org>2009-03-05 19:09:53 -0800
commit244c2a517a48a0985091397bed6a754cb2e2e1a5 (patch)
tree86f676861612f03dba0e401aff7478dc8adbb84f /src/base/stats/text.cc
parente19fd1d521cd8444a52374392643ebf8be0b6c09 (diff)
downloadgem5-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.cc17
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;