]> err.no Git - varnish/commitdiff
Fix stats.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 10:23:34 +0000 (10:23 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 10:23:34 +0000 (10:23 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@991 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c
varnish-cache/bin/varnishd/cache_center.c

index 68b0a9d3dabaf050d41cbed6e205994276db5cb1..46ea0eec2d6037d36c786939ce5d1d4db0c2bd74 100644 (file)
@@ -115,7 +115,6 @@ vca_handover(struct sess *sp, int bad)
                return;
        }
        sp->step = STP_RECV;
-       VSL_stats->client_req++;
        WRK_QueueSession(sp);
 }
 
index 807752c2a0626e8d48c2514545fe4837f9c8b681..db4617ad147def4db4e6f398a9d0418a3cb5e915 100644 (file)
@@ -673,6 +673,7 @@ cnt_recv(struct sess *sp)
 {
        int done;
 
+       VSL_stats->client_req++;
        clock_gettime(CLOCK_REALTIME, &sp->t_req);
        sp->wrk->idle = sp->t_req.tv_sec;
        sp->xid = ++xids;