httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r396300 - /httpd/httpd/trunk/support/ab.c
Date Sun, 23 Apr 2006 18:04:18 GMT
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)) +



Mime
View raw message