From: Christophe Jaillet Date: Sat, 2 Mar 2013 08:13:16 +0000 (+0000) Subject: The 2 first patches from PR45355 have been ported X-Git-Tag: 2.5.0-alpha~5713 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1976f87a2c51096df00f550e03c5b3881115baa;p=apache The 2 first patches from PR45355 have been ported git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1451849 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index f20bae32c5..a9186ca863 100644 --- a/support/ab.c +++ b/support/ab.c @@ -815,9 +815,9 @@ static void output_results(int sig) (double) totalread / 1024 / timetaken); if (send_body) { printf(" %.2f kb/s sent\n", - (double) totalposted / timetaken / 1024); + (double) totalposted / 1024 / timetaken); printf(" %.2f kb/s total\n", - (double) (totalread + totalposted) / timetaken / 1024); + (double) (totalread + totalposted) / 1024 / timetaken); } } @@ -1100,16 +1100,16 @@ static void output_html_results(void) trstring, tdstring, tdstring, (double) done / timetaken); printf("Transfer rate:" "%.2f kb/s received\n", - trstring, tdstring, tdstring, (double) totalread / timetaken); + trstring, tdstring, tdstring, (double) totalread / 1024 / timetaken); if (send_body) { printf(" " "%.2f kb/s sent\n", trstring, tdstring, tdstring, - (double) totalposted / timetaken); + (double) totalposted / 1024 / timetaken); printf(" " "%.2f kb/s total\n", trstring, tdstring, tdstring, - (double) (totalread + totalposted) / timetaken); + (double) (totalread + totalposted) / 1024 / timetaken); } } { @@ -1703,7 +1703,7 @@ static void test(void) exit(1); } #endif /* NOT_ASCII */ - + if (myhost) { /* This only needs to be done once */ if ((rv = apr_sockaddr_info_get(&mysa, myhost, APR_UNSPEC, 0, 0, cntxt)) != APR_SUCCESS) { @@ -1715,7 +1715,7 @@ static void test(void) } /* This too */ - if ((rv = apr_sockaddr_info_get(&destsa, connecthost, + if ((rv = apr_sockaddr_info_get(&destsa, connecthost, myhost ? mysa->family : APR_UNSPEC, connectport, 0, cntxt)) != APR_SUCCESS) { @@ -1922,7 +1922,7 @@ static void usage(const char *progname) #endif fprintf(stderr, " -Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)\n"); - fprintf(stderr, " -f protocol Specify SSL/TLS protocol\n"); + fprintf(stderr, " -f protocol Specify SSL/TLS protocol\n"); fprintf(stderr, " (" SSL2_HELP_MSG "SSL3, TLS1" TLS1_X_HELP_MSG " or ALL)\n"); #endif exit(EINVAL);