diff options
author | Gordon Sim <gsim@apache.org> | 2011-02-15 17:08:30 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-02-15 17:08:30 +0000 |
commit | 09a2d7a8ed555ff292fb7dac706f13c643d323ea (patch) | |
tree | 2482bf5ddd2031f2980470481d219b91a2c2b0c5 | |
parent | 5ad8716d705bb63bd6f2d9903b8c00ea4acb76db (diff) | |
download | qpid-python-09a2d7a8ed555ff292fb7dac706f13c643d323ea.tar.gz |
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
-rw-r--r-- | cpp/src/qpid/broker/ThresholdAlerts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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)); |