diff options
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r-- | src/base/statistics.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh index 9c10164a9..529871dc4 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -1361,9 +1361,8 @@ class DistStor 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; } |