diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2011-12-18 02:42:54 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2011-12-18 02:42:54 +0000 |
commit | 6cf7544bfe16414bf7f964a06f6a085f7505f5f4 (patch) | |
tree | 7f351b921200e9f3ca623f2feb01c4ccacc283e8 /usr.bin | |
parent | ef20db172336b36e36185d3dcae12432d43d51ef (diff) |
Don't lie the number of estabilished connections. nconns is the number
of requested, not estabilished connections, so use mainstats.nconns.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tcpbench/tcpbench.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c index 8e098023cf9..d5aef6a6773 100644 --- a/usr.bin/tcpbench/tcpbench.c +++ b/usr.bin/tcpbench/tcpbench.c @@ -915,7 +915,8 @@ client_init(struct addrinfo *aitop, int nconn, struct statctx *udp_sc, freeaddrinfo(aitop); if (ptb->vflag && nconn > 1) - fprintf(stderr, "%u connections established\n", nconn); + fprintf(stderr, "%d connections established\n", + mainstats.nconns); } static int |