qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1070974 - /qpid/trunk/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp
Date Tue, 15 Feb 2011 17:08:30 GMT
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


Mime
View raw message