]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
The compiler *should* do this, but just in case
authorJim Jagielski <jim@apache.org>
Mon, 19 Nov 2012 19:31:34 +0000 (19:31 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 19 Nov 2012 19:31:34 +0000 (19:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1411361 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/eventopt/eventopt.c

index 795dba311504c9e891f14e8cc1a64721308c0df1..b05968b5363a83a0818d9b34a04d163b2781e821 100644 (file)
@@ -1513,11 +1513,11 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy)
                 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);
             }