From c475183e2bff557af5a47c964afd9f5c696a0740 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 5 Jul 2006 07:53:22 +0000 Subject: [PATCH] Use the correct variable when generating the URL. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@308 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/fetcher/fetcher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varnish-tools/fetcher/fetcher.c b/varnish-tools/fetcher/fetcher.c index 2d0d05b8..87c040b3 100644 --- a/varnish-tools/fetcher/fetcher.c +++ b/varnish-tools/fetcher/fetcher.c @@ -160,8 +160,9 @@ main(int argc, char *argv[]) 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); } -- 2.39.5