From: Colm MacCarthaigh Date: Sun, 23 Apr 2006 18:04:17 +0000 (+0000) Subject: when compiling statistics, only interate accross requests which occured. X-Git-Tag: 2.3.0~2419 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e58985dcf9b1e21f6a10ad40509d3dc9fb2ea427;p=apache 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 --- diff --git a/support/ab.c b/support/ab.c index 11f9806ae6..cf24391042 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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)) +