r991 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 15 12:23:34 CEST 2006


Author: phk
Date: 2006-09-15 12:23:34 +0200 (Fri, 15 Sep 2006)
New Revision: 991

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.c
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Fix stats.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-09-15 10:03:24 UTC (rev 990)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-09-15 10:23:34 UTC (rev 991)
@@ -115,7 +115,6 @@
 		return;
 	}
 	sp->step = STP_RECV;
-	VSL_stats->client_req++;
 	WRK_QueueSession(sp);
 }
 

Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2006-09-15 10:03:24 UTC (rev 990)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2006-09-15 10:23:34 UTC (rev 991)
@@ -673,6 +673,7 @@
 {
 	int done;
 
+	VSL_stats->client_req++;
 	clock_gettime(CLOCK_REALTIME, &sp->t_req);
 	sp->wrk->idle = sp->t_req.tv_sec;
 	sp->xid = ++xids;




More information about the varnish-commit mailing list