From 8cb926b254ed2d7348d19e85b31c7bd846ade4fb Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 7 Sep 2000 01:10:30 +0000 Subject: [PATCH] improved diagnostic --- src/libCom/timer/osiTimer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/timer/osiTimer.cpp b/src/libCom/timer/osiTimer.cpp index 1f786ef61..32778fc50 100644 --- a/src/libCom/timer/osiTimer.cpp +++ b/src/libCom/timer/osiTimer.cpp @@ -183,7 +183,7 @@ void osiTimer::reschedule (double newDelay) // occurring during the expire call // back // - if (this == this->queue.pExpireTmr) { + if ( this == this->queue.pExpireTmr ) { this->queue.pExpireTmr = 0; } this->queue.timerLists[this->curState].remove (*this); @@ -514,6 +514,9 @@ double osiTimerQueue::delayToFirstExpire () const pTmr = this->timerLists[osiTimer::statePending].first (); if (pTmr) { delay = pTmr->timeRemaining (); +# ifdef DEBUG + printf ("delay for %f sec for %s\n", delay, pTmr->name () ); +# endif } else { // @@ -524,9 +527,6 @@ double osiTimerQueue::delayToFirstExpire () const this->mutex.unlock (); -#ifdef DEBUG - printf ("delay to first item on the queue %f\n", (double) delay); -#endif return delay; // seconds }