summaryrefslogtreecommitdiff
path: root/src/base/stats/text.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-09 04:58:23 -0700
committerNathan Binkert <nate@binkert.org>2008-10-09 04:58:23 -0700
commita52dce6d623f6cb289004d4af12be0769966dadf (patch)
tree9edabd04f76bd4ae3f39f00c149edc2642457aaf /src/base/stats/text.cc
parentb66eb3b8d1e759bacb55ef187541f4c37767241a (diff)
downloadgem5-a52dce6d623f6cb289004d4af12be0769966dadf.tar.xz
style: Bring statistics code in line with the proper style.
Diffstat (limited to 'src/base/stats/text.cc')
-rw-r--r--src/base/stats/text.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc
index f65b77777..a39bfe242 100644
--- a/src/base/stats/text.cc
+++ b/src/base/stats/text.cc
@@ -447,7 +447,6 @@ DistPrint::operator()(ostream &stream) const
print(stream);
}
-
if (!compat) {
for (int i = 0; i < size; ++i) {
stringstream namestr;
@@ -467,7 +466,6 @@ DistPrint::operator()(ostream &stream) const
}
print(stream);
}
-
} else {
Counter _min;
Result _pdf;
@@ -633,7 +631,8 @@ Text::visit(const Vector2dData &data)
super_total += yvec[j];
}
- print.name = data.name + "_" + (havesub ? data.subnames[i] : to_string(i));
+ print.name = data.name + "_" +
+ (havesub ? data.subnames[i] : to_string(i));
print.desc = data.desc;
print.vec = yvec;
print.total = total;
@@ -693,8 +692,8 @@ Text::visit(const VectorDistData &data)
for (int i = 0; i < data.size(); ++i) {
DistPrint print;
- print.name = data.name +
- (data.subnames[i].empty() ? ("_" + to_string(i)) : data.subnames[i]);
+ print.name = data.name + "_" +
+ (data.subnames[i].empty() ? (to_string(i)) : data.subnames[i]);
print.desc = data.subdescs[i].empty() ? data.desc : data.subdescs[i];
print.flags = data.flags;
print.compat = compat;
@@ -748,5 +747,4 @@ initText(const string &filename, bool desc, bool compat)
return true;
}
-
/* namespace Stats */ }