diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-08-21 20:54:05 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-08-21 20:54:05 +0000 |
commit | 03f4fe803f86ea88f62b685622b110a9785cf8d0 (patch) | |
tree | 684fdfc097c35dad4e027433e5cad222fd47738a /cpp/src | |
parent | 330157285fc453a3b07b251cb90e2d167eab2fdb (diff) | |
download | qpid-python-03f4fe803f86ea88f62b685622b110a9785cf8d0.tar.gz |
Use more friendly time setting for the Timer warnings
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/sys/Timer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/Timer.cpp b/cpp/src/qpid/sys/Timer.cpp index d569fb3bb7..3d2a900455 100644 --- a/cpp/src/qpid/sys/Timer.cpp +++ b/cpp/src/qpid/sys/Timer.cpp @@ -84,6 +84,7 @@ Timer::~Timer() stop(); } +// TODO AStitcher 21/08/09 The threshholds for emitting warnings are a little arbitrary void Timer::run() { Monitor::ScopedLock l(monitor); @@ -111,8 +112,8 @@ void Timer::run() // Warn on callback overrun AbsTime end(AbsTime::now()); Duration overrun(tasks.top()->nextFireTime, end); - bool late = delay > 1 * TIME_MSEC; - bool overran = overrun > 1 * TIME_MSEC; + bool late = delay > 10 * TIME_MSEC; + bool overran = overrun > 2 * TIME_MSEC; if (late) if (overran) { QPID_LOG(warning, |