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 | e9cbb2646bdc51c5ae9e0e899231f017e9d9d20d (patch) | |
| tree | 26cbde299fc9f228a317f525b080bd1fda73edc5 /qpid/cpp | |
| parent | 43d4ca6f747f41a79d98e1eea3e74f88fa70eb49 (diff) | |
| download | qpid-python-e9cbb2646bdc51c5ae9e0e899231f017e9d9d20d.tar.gz | |
QPID-3002: Added explicit casts required by some compiler versions
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1070974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp b/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp index 5e61ff0e2b..4f35884af8 100644 --- a/qpid/cpp/src/qpid/broker/ThresholdAlerts.cpp +++ b/qpid/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)); |
