summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-12-18 02:42:54 +0000
committerChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-12-18 02:42:54 +0000
commit6cf7544bfe16414bf7f964a06f6a085f7505f5f4 (patch)
tree7f351b921200e9f3ca623f2feb01c4ccacc283e8 /usr.bin
parentef20db172336b36e36185d3dcae12432d43d51ef (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.c3
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