r308 - trunk/varnish-tools/fetcher

des at projects.linpro.no des at projects.linpro.no
Wed Jul 5 09:53:22 CEST 2006


Author: des
Date: 2006-07-05 09:53:22 +0200 (Wed, 05 Jul 2006)
New Revision: 308

Modified:
   trunk/varnish-tools/fetcher/fetcher.c
Log:
Use the correct variable when generating the URL.

Modified: trunk/varnish-tools/fetcher/fetcher.c
===================================================================
--- trunk/varnish-tools/fetcher/fetcher.c	2006-07-05 07:49:55 UTC (rev 307)
+++ trunk/varnish-tools/fetcher/fetcher.c	2006-07-05 07:53:22 UTC (rev 308)
@@ -160,8 +160,9 @@
 		err(1, "fdopen()");
 
 	for (i = 0; i < ctr; ++i) {
-		fprintf(stderr, "\r%d ", i);
-		snprintf(url, sizeof url, url_pattern, ctr % MAX_CTR);
+		if (i % 163 == 0)
+			fprintf(stderr, "\r%d ", i);
+		snprintf(url, sizeof url, url_pattern, i % MAX_CTR);
 		send_request(f, method, host, url);
 		receive_response(f, method);
 	}




More information about the varnish-commit mailing list