]> granicus.if.org Git - apache/commitdiff
ab: Fix number of requests per second in HTML output being to large by a
authorStefan Fritsch <sf@apache.org>
Sun, 24 Jan 2010 20:58:19 +0000 (20:58 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 24 Jan 2010 20:58:19 +0000 (20:58 +0000)
factor of 1000

PR: 48594

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@902642 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/ab.c

diff --git a/CHANGES b/CHANGES
index e0782208cff82e3acb28b39b7dbf305551289db6..4a436338631e6bab99ff02ecc4f2df592c3f9f57 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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]
index 734176596fce5059d901385940dea502d4db2a51..abb3c2017c04099afb987063268efd024615e2b6 100644 (file)
@@ -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);