]> granicus.if.org Git - apache/commitdiff
when compiling statistics, only interate accross requests which occured.
authorColm MacCarthaigh <colm@apache.org>
Sun, 23 Apr 2006 18:04:17 +0000 (18:04 +0000)
committerColm MacCarthaigh <colm@apache.org>
Sun, 23 Apr 2006 18:04:17 +0000 (18:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@396300 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 11f9806ae67248902231d62c440f0417f7f2473e..cf243910428d0739bbc6dc8d859ca6e4a7a09b1a 100644 (file)
@@ -728,6 +728,13 @@ static void output_results(int sig)
     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)) +