You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2012/11/19 20:31:35 UTC

svn commit: r1411361 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c

Author: jim
Date: Mon Nov 19 19:31:34 2012
New Revision: 1411361

URL: http://svn.apache.org/viewvc?rev=1411361&view=rev
Log:
The compiler *should* do this, but just in case

Modified:
    httpd/httpd/trunk/server/mpm/eventopt/eventopt.c

Modified: httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/eventopt.c?rev=1411361&r1=1411360&r2=1411361&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/eventopt.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/eventopt.c Mon Nov 19 19:31:34 2012
@@ -1513,11 +1513,11 @@ static void * APR_THREAD_FUNC listener_t
                 break;
         }
 
-        now = apr_time_now();
+        now = apr_time_now() + EVENT_FUDGE_FACTOR;
         apr_thread_mutex_lock(g_timer_skiplist_mtx);
         ep = skiplist_peek(timer_skiplist);
         while (ep) {
-            if (ep->when < now + EVENT_FUDGE_FACTOR) {
+            if (ep->when < now) {
                 skiplist_pop(timer_skiplist, NULL);
                 push_timer2worker(ep);
             }