Commit 2f5a749b authored by Colm MacCarthaigh's avatar Colm MacCarthaigh
Browse files

when compiling statistics, only interate accross requests which occured.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@396300 13f79535-47bb-0310-9956-ffa450edef68
parent 9df9b945
Loading
Loading
Loading
Loading
+7 −0
Changes for support/ab.c: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)) +