]> err.no Git - varnish/commitdiff
Examine queue length, not how many have passed through the queue over all time.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 20 Sep 2006 14:52:07 +0000 (14:52 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 20 Sep 2006 14:52:07 +0000 (14:52 +0000)
MFC: yes.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1107 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 410600cce5668a5ca1aceca55adf36908a9207dc..08da4686c5a7a5f13bd3bac2ba657283b88f2583 100644 (file)
@@ -303,7 +303,7 @@ WRK_QueueSession(struct sess *sp)
         * the result will be
         */
        if (sp->obj == NULL &&
-           (VSL_stats->n_wrk_overflow >
+           (VSL_stats->n_wrk_queue >
            (params->wthread_max * params->overflow_max) / 100)) {
                VSL_stats->n_wrk_drop++;
                UNLOCK(&tmtx);