From e58985dcf9b1e21f6a10ad40509d3dc9fb2ea427 Mon Sep 17 00:00:00 2001 From: Colm MacCarthaigh Date: Sun, 23 Apr 2006 18:04:17 +0000 Subject: [PATCH] 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 --- support/ab.c | 7 +++++++ 1 file changed, 7 insertions(+) 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)) + -- 2.50.1