diff options
author | 2011-12-18 02:42:53 +0000 | |
---|---|---|
committer | 2011-12-18 02:42:53 +0000 | |
commit | fd17a2883efc1eacdf03c91432490c7d57fb40b8 (patch) | |
tree | 82077f26eef2cd0d0fcbffbdc2e169e8dd2ae086 /usr.bin/tcpbench/tcpbench.c | |
parent | Typo. (diff) | |
download | wireguard-openbsd-fd17a2883efc1eacdf03c91432490c7d57fb40b8.tar.xz wireguard-openbsd-fd17a2883efc1eacdf03c91432490c7d57fb40b8.zip |
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/tcpbench/tcpbench.c')
-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 |