httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1411361 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Date Mon, 19 Nov 2012 19:31:35 GMT
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);
             }



Mime
View raw message