From 09a2d7a8ed555ff292fb7dac706f13c643d323ea Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 15 Feb 2011 17:08:30 +0000 Subject: QPID-3002: Added explicit casts required by some compiler versions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1070974 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/ThresholdAlerts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid') diff --git a/cpp/src/qpid/broker/ThresholdAlerts.cpp b/cpp/src/qpid/broker/ThresholdAlerts.cpp index 5e61ff0e2b..4f35884af8 100644 --- a/cpp/src/qpid/broker/ThresholdAlerts.cpp +++ b/cpp/src/qpid/broker/ThresholdAlerts.cpp @@ -128,9 +128,9 @@ void ThresholdAlerts::observe(Queue& queue, qpid::management::ManagementAgent& a //If no explicit threshold settings were given use 80% of any //limit from the policy. const QueuePolicy* policy = queue.getPolicy(); - Option countThreshold("qpid.alert_count", policy ? policy->getMaxCount()*0.8 : 0); + Option countThreshold("qpid.alert_count", (uint32_t) (policy ? policy->getMaxCount()*0.8 : 0)); countThreshold.addAlias("x-qpid-maximum-message-count"); - Option sizeThreshold("qpid.alert_size", policy ? policy->getMaxSize()*0.8 : 0); + Option 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)); -- cgit v1.2.1