You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2011/02/15 18:08:30 UTC
svn commit: r1070974 -
/qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp
Author: gsim
Date: Tue Feb 15 17:08:30 2011
New Revision: 1070974
URL: http://svn.apache.org/viewvc?rev=1070974&view=rev
Log:
QPID-3002: Added explicit casts required by some compiler versions
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp?rev=1070974&r1=1070973&r2=1070974&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp Tue Feb 15 17:08:30 2011
@@ -128,9 +128,9 @@ void ThresholdAlerts::observe(Queue& que
//If no explicit threshold settings were given use 80% of any
//limit from the policy.
const QueuePolicy* policy = queue.getPolicy();
- Option<uint32_t> countThreshold("qpid.alert_count", policy ? policy->getMaxCount()*0.8 : 0);
+ Option<uint32_t> countThreshold("qpid.alert_count", (uint32_t) (policy ? policy->getMaxCount()*0.8 : 0));
countThreshold.addAlias("x-qpid-maximum-message-count");
- Option<uint64_t> sizeThreshold("qpid.alert_size", policy ? policy->getMaxSize()*0.8 : 0);
+ Option<uint64_t> sizeThreshold("qpid.alert_size", (uint64_t) (policy ? policy->getMaxSize()*0.8 : 0));
sizeThreshold.addAlias("x-qpid-maximum-message-size");
observe(queue, agent, countThreshold.get(settings), sizeThreshold.get(settings), repeatInterval.get(settings));
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org