changeset 9069448c4fbc in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=9069448c4fbc description: stats: fix the distribution stat
diffstat: src/base/statistics.hh | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diffs (15 lines): diff -r 817c662677d1 -r 9069448c4fbc src/base/statistics.hh --- a/src/base/statistics.hh Mon Jan 10 11:11:16 2011 -0800 +++ b/src/base/statistics.hh Mon Jan 10 11:11:16 2011 -0800 @@ -1361,9 +1361,8 @@ if (val > max_val) max_val = val; - Counter sample = val * number; - sum += sample; - squares += sample * sample; + sum += val * number; + squares += val * val * number; samples += number; } _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev