summaryrefslogtreecommitdiff
path: root/ace/Stats.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 17:14:02 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 17:14:02 +0000
commita8a5cdd219aa7d1747f3a5ef01583caaa67a94e2 (patch)
treef928f80139b338c298f377a04fa23a2e3bb981e3 /ace/Stats.i
parent17527c9115c50a8b3ba46a272f16dbd629070113 (diff)
downloadATCD-a8a5cdd219aa7d1747f3a5ef01583caaa67a94e2.tar.gz
modified standard deviation calculation to help avoid overflow
Diffstat (limited to 'ace/Stats.i')
-rw-r--r--ace/Stats.i5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Stats.i b/ace/Stats.i
index 73c2c743d05..8f5b6d0df22 100644
--- a/ace/Stats.i
+++ b/ace/Stats.i
@@ -52,7 +52,8 @@ ACE_Stats_Value::scaled_value (ACE_UINT64 &sv) const
}
ACE_INLINE
-ACE_Stats::ACE_Stats (void)
+ACE_Stats::ACE_Stats (void) :
+ cached_mean_ (0xFFFFFFFFu)
{
reset ();
}
@@ -61,7 +62,7 @@ ACE_INLINE
ACE_UINT32
ACE_Stats::samples (void) const
{
- return samples_;
+ return number_of_samples_;
}
ACE_INLINE