From 37060b992e96f872b75d7a6ad29c15847d2a4303 Mon Sep 17 00:00:00 2001 From: "Paul J. Reder" Date: Wed, 1 May 2002 21:17:18 +0000 Subject: [PATCH] Fix some minor formatting issues with ab. Part of this is in reference to PR 8544, the rest I noticed while testing the PR fix. [Paul J. Reder] Submitted By: Carlo Marcelo Arenas Belon Reviewed By: Paul J. Reder git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94898 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ support/ab.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index 37bc580df5..e6f034b026 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,10 @@ Changes with Apache 2.0.37 Changes with Apache 2.0.36 + *) Fix some minor formatting issues with ab. Part of this is + in reference to PR 8544, the rest I noticed while testing + the PR fix. [Paul J. Reder] + *) Fix a case where an invalid pass phrase is entered and an error message is given, but the prompt is not shown again. This left the user in an ambiguous state. PR 8320 [Paul J. Reder] diff --git a/support/ab.c b/support/ab.c index fdcc493007..82b2b997fc 100644 --- a/support/ab.c +++ b/support/ab.c @@ -517,9 +517,9 @@ static void output_results(void) printf("Requests per second: %.2f [#/sec] (mean)\n", (float) (done / timetaken)); printf("Time per request: %.3f [ms] (mean)\n", - (float) (concurrency * timetaken / done)); + (float) (1000 * concurrency * timetaken / done)); printf("Time per request: %.3f [ms] (mean, across all concurrent requests)\n", - (float) (timetaken / done)); + (float) (1000 * timetaken / done)); printf("Transfer rate: %.2f [Kbytes/sec] received\n", (float) (totalread / 1024 / timetaken)); if (posting > 0) { @@ -645,8 +645,8 @@ static void output_results(void) printf("\nConnection Times (ms)\n"); if (confidence) { -#define CONF_FMT_STRING "%" APR_TIME_T_FMT " %5d %6.1f %" APR_TIME_T_FMT " %" APR_TIME_T_FMT "\n" - printf(" min mean[+/-sd] median max\n"); +#define CONF_FMT_STRING "%5" APR_TIME_T_FMT " %4d %5.1f %6" APR_TIME_T_FMT " %7" APR_TIME_T_FMT "\n" + printf(" min mean[+/-sd] median max\n"); printf("Connect: " CONF_FMT_STRING, mincon, (int) (totalcon + 0.5), sdcon, meancon, maxcon); printf("Processing: " CONF_FMT_STRING, @@ -1329,14 +1329,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.99 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.100 $> apache-2.0"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.99 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.100 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n"); -- 2.40.0