You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2006/04/23 20:04:18 UTC

svn commit: r396300 - /httpd/httpd/trunk/support/ab.c

Author: colm
Date: Sun Apr 23 11:04:17 2006
New Revision: 396300

URL: http://svn.apache.org/viewcvs?rev=396300&view=rev
Log:
when compiling statistics, only interate accross requests which occured.

Modified:
    httpd/httpd/trunk/support/ab.c

Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/support/ab.c?rev=396300&r1=396299&r2=396300&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Sun Apr 23 11:04:17 2006
@@ -728,6 +728,13 @@
     apr_interval_time_t timetakenusec;
     float timetaken;
 
+    /* If ab was interrupted, we are only interested in requests
+     * which occured.
+     */
+    if (sig) {
+        requests = done + bad;
+    }
+
     endtime = apr_time_now();
     timetakenusec = endtime - start;
     timetaken = ((float)apr_time_sec(timetakenusec)) +