changeset 71e56052768f in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=71e56052768f description: stats: miscellaneous cleanup
diffstat: 1 file changed, 7 insertions(+), 9 deletions(-) src/base/statistics.hh | 16 +++++++--------- diffs (82 lines): diff -r 9c04119e93af -r 71e56052768f src/base/statistics.hh --- a/src/base/statistics.hh Thu Mar 05 19:09:53 2009 -0800 +++ b/src/base/statistics.hh Thu Mar 05 19:09:53 2009 -0800 @@ -468,7 +468,7 @@ /** * Set the precision and marks this stat to print at the end of simulation. - * @param p The new precision + * @param _precision The new precision * @return A reference to this stat. */ Parent & @@ -728,7 +728,7 @@ void reset(Info *info) { - total = 0; + total = 0.0; last = curTick; } @@ -1253,7 +1253,7 @@ Result total() const { - Result total = 0; + Result total = 0.0; for (off_type i = 0; i < size(); ++i) total += data(i)->result(); return total; @@ -1471,7 +1471,6 @@ * Add a value to the distribution for the given number of times. * @param val The value to add. * @param number The number of times to add the value. - * @param params The paramters of the distribution. */ void sample(Counter val, int number) @@ -1595,7 +1594,6 @@ * values seen by the given number. * @param val The value to add. * @param number The number of times to add the value. - * @param p The parameters of this stat. */ void sample(Counter val, int number) @@ -1973,7 +1971,7 @@ Result VectorDistBase<Storage>::total(off_type index) const { - Result total = 0; + Result total = 0.0; for (off_type i = 0; i < x_size(); ++i) total += data(i)->result(); } @@ -2215,7 +2213,7 @@ total() const { const VResult &vec = this->result(); - Result total = 0; + Result total = 0.0; for (off_type i = 0; i < size(); i++) total += vec[i]; return total; @@ -2277,7 +2275,7 @@ total() const { const VResult &vec = this->result(); - Result total = 0; + Result total = 0.0; for (off_type i = 0; i < size(); i++) total += vec[i]; return total; @@ -2853,7 +2851,7 @@ * Return the node pointer. * @return the node pointer. */ - operator NodePtr&() { return node;} + operator NodePtr&() { return node; } public: /** _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev