diff options
author | Stefan Fritsch <sf@apache.org> | 2010-01-24 21:58:19 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-01-24 21:58:19 +0100 |
commit | 5d86539b1e1912981bba20f0e0241775362f17f4 (patch) | |
tree | d4c463f6c4ce61fe0d34b86bc66da1c28453acdc | |
parent | Change LDAP authentication failures (user->DN or password check) to log (diff) | |
download | apache2-5d86539b1e1912981bba20f0e0241775362f17f4.tar.xz apache2-5d86539b1e1912981bba20f0e0241775362f17f4.zip |
ab: Fix number of requests per second in HTML output being to large by a
factor of 1000
PR: 48594
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@902642 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | support/ab.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,9 @@ Changes with Apache 2.3.6 + *) ab: Fix calculation of requests per second in HTML output. PR 48594. + [Stefan Fritsch] + *) mod_authnz_ldap: Failures to map a username to a DN, or to check a user password now result in an informational level log entry instead of warning level. [Eric Covener] diff --git a/support/ab.c b/support/ab.c index 734176596f..abb3c2017c 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1103,7 +1103,7 @@ static void output_html_results(void) if (timetaken) { printf("<tr %s><th colspan=2 %s>Requests per second:</th>" "<td colspan=2 %s>%.2f</td></tr>\n", - trstring, tdstring, tdstring, (double) done * 1000 / timetaken); + trstring, tdstring, tdstring, (double) done / timetaken); printf("<tr %s><th colspan=2 %s>Transfer rate:</th>" "<td colspan=2 %s>%.2f kb/s received</td></tr>\n", trstring, tdstring, tdstring, (double) totalread / timetaken); |