Commit 8812d8ed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Change statistics from gauge to counter


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1041 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f05c51b0
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment