summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ClusterTimer.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-03-25 13:21:30 +0000
committerAlan Conway <aconway@apache.org>2010-03-25 13:21:30 +0000
commit075885d1e2c88712d5a7c1f6eaded4b8f56230da (patch)
tree46424993974642b5cdcebf921af930de42773fa8 /cpp/src/qpid/cluster/ClusterTimer.cpp
parentcf1e629ac945af61a41110dd809d7c56c02ae94f (diff)
downloadqpid-python-075885d1e2c88712d5a7c1f6eaded4b8f56230da.tar.gz
More generous overrun threshold for cluster timer to avoid excessive warnings.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterTimer.cpp')
-rw-r--r--cpp/src/qpid/cluster/ClusterTimer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/ClusterTimer.cpp b/cpp/src/qpid/cluster/ClusterTimer.cpp
index 612758152f..4068a4783c 100644
--- a/cpp/src/qpid/cluster/ClusterTimer.cpp
+++ b/cpp/src/qpid/cluster/ClusterTimer.cpp
@@ -34,7 +34,11 @@ using sys::Timer;
using sys::TimerTask;
-ClusterTimer::ClusterTimer(Cluster& c) : cluster(c) {}
+ClusterTimer::ClusterTimer(Cluster& c) : cluster(c) {
+ // Allow more generous overrun threshold with cluster as we
+ // have to do a CPG round trip before executing the task.
+ overran = 10*sys::TIME_MSEC;
+}
ClusterTimer::~ClusterTimer() {}