From: phk Date: Sat, 16 Sep 2006 22:00:35 +0000 (+0000) Subject: Change statistics from gauge to counter X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef4f4fb649ce3d3b9a8c4170eff036ae3b6a81c;p=varnish Change statistics from gauge to counter git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1041 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 47ef6942..82c91453 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -197,7 +197,6 @@ wrk_thread(void *priv) w->wrq = TAILQ_FIRST(&qp->req); AN(w->wrq); TAILQ_REMOVE(&qp->req, w->wrq, list); - VSL_stats->n_wrk_queue--; UNLOCK(&qp->mtx); wrk_do_one(w); LOCK(&qp->mtx); @@ -257,11 +256,11 @@ WRK_QueueSession(struct sess *sp) } TAILQ_INSERT_TAIL(&qp->req, &sp->workreq, list); - VSL_stats->n_wrk_queue++; qp->overflow++; UNLOCK(&qp->mtx); LOCK(&tmtx); + VSL_stats->n_wrk_queue++; /* Can we create more threads ? */ if (VSL_stats->n_wrk >= params->wthread_max) { VSL_stats->n_wrk_max++;