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 | 9f47dd256ecab2e710c3ac33e057404a1f504b04 (patch) | |
tree | c0608608d02d0f4bdff692274ad45aa47df37377 /qpid/cpp/src | |
parent | 04a39245e7c60e50be02bcc576f05fc33e9a568b (diff) | |
download | qpid-python-9f47dd256ecab2e710c3ac33e057404a1f504b04.tar.gz |
Use more friendly time setting for the Timer warnings
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@806719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r-- | qpid/cpp/src/qpid/sys/Timer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/sys/Timer.cpp b/qpid/cpp/src/qpid/sys/Timer.cpp index d569fb3bb7..3d2a900455 100644 --- a/qpid/cpp/src/qpid/sys/Timer.cpp +++ b/qpid/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, |