summaryrefslogtreecommitdiff
path: root/ace/Basic_Stats.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Basic_Stats.inl')
-rw-r--r--ace/Basic_Stats.inl16
1 files changed, 2 insertions, 14 deletions
diff --git a/ace/Basic_Stats.inl b/ace/Basic_Stats.inl
index 4ed1baca459..b2fd80d121a 100644
--- a/ace/Basic_Stats.inl
+++ b/ace/Basic_Stats.inl
@@ -8,7 +8,6 @@ ACE_Basic_Stats::ACE_Basic_Stats (void)
, max_ (0)
, max_at_ (0)
, sum_ (0)
- , sum2_ (0)
{
}
@@ -29,12 +28,6 @@ ACE_Basic_Stats::sample (ACE_UINT64 value)
this->min_at_ = this->samples_count_;
this->max_ = value;
this->max_at_ = this->samples_count_;
- this->sum_ = value;
-#if defined ACE_LACKS_LONGLONG_T
- this->sum2_ = value * ACE_U64_TO_U32 (value);
-#else /* ! ACE_LACKS_LONGLONG_T */
- this->sum2_ = value * value;
-#endif /* ! ACE_LACKS_LONGLONG_T */
}
else
{
@@ -48,12 +41,7 @@ ACE_Basic_Stats::sample (ACE_UINT64 value)
this->max_ = value;
this->max_at_ = this->samples_count_;
}
-
- this->sum_ += value;
-#if defined ACE_LACKS_LONGLONG_T
- this->sum2_ += value * ACE_U64_TO_U32 (value);
-#else /* ! ACE_LACKS_LONGLONG_T */
- this->sum2_ += value * value;
-#endif /* ! ACE_LACKS_LONGLONG_T */
}
+
+ this->sum_ += value;
}