summaryrefslogtreecommitdiff
path: root/ace/Sample_History.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-30 17:44:50 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-30 17:44:50 +0000
commit621e0f0cae77304328c5962a44779273ced3ef31 (patch)
treebf2e9544ae6b4f0928bc9cd8c0e66db9324c93e9 /ace/Sample_History.cpp
parent8ecc1c2fc83ea46ec5985d8babe7f464ab37b6da (diff)
downloadATCD-621e0f0cae77304328c5962a44779273ced3ef31.tar.gz
ChangeLogTag:Mon Oct 30 11:38:07 2000 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'ace/Sample_History.cpp')
-rw-r--r--ace/Sample_History.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Sample_History.cpp b/ace/Sample_History.cpp
index 1ae7f0b6859..3eaf796f441 100644
--- a/ace/Sample_History.cpp
+++ b/ace/Sample_History.cpp
@@ -14,7 +14,7 @@ ACE_Sample_History::ACE_Sample_History (size_t max_samples)
: max_samples_ (max_samples)
, sample_count_ (0)
{
- ACE_NEW (this->samples_, ACE_UINT64[this->max_samples_]);
+ ACE_NEW(this->samples_, ACE_UINT64[this->max_samples_]);
}
ACE_Sample_History::~ACE_Sample_History (void)
@@ -29,7 +29,8 @@ ACE_Sample_History::dump_samples (const ACE_TCHAR *msg,
for (size_t i = 0; i != this->sample_count_; ++i)
{
ACE_UINT64 x = this->samples_[i] / scale_factor;
- ACE_DEBUG ((LM_DEBUG, "%s: %d %Q\n", msg, i, x));
+ ACE_UINT32 val = ACE_CU64_TO_CU32 (x);
+ ACE_DEBUG ((LM_DEBUG, "%s: %d %u\n", msg, i, val));
}
}