From: Martin Kraemer Date: Wed, 17 Jul 2002 14:49:54 +0000 (+0000) Subject: Off by one millisecond ;-) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9681a544b1eaa7e851a1afea1f6b19d94214cb8;p=thirdparty%2Fapache%2Fhttpd.git Off by one millisecond ;-) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96095 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/support/ab.c b/src/support/ab.c index 88d4cd40de4..53af498ccba 100644 --- a/src/support/ab.c +++ b/src/support/ab.c @@ -1306,7 +1306,7 @@ static void test(void) /* check for time limit expiry */ gettimeofday(&now, 0); - if (tlimit && timedif(now, start) > (tlimit * 1000)) { + if (tlimit && timedif(now, start) >= (tlimit * 1000)) { requests = done; /* so stats are correct */ } /* Timeout of 30 seconds. */ @@ -1351,14 +1351,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.65 $> apache-1.3"); + printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.66 $> apache-1.3"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-1.3
\n", VERSION, "$Revision: 1.65 $"); + printf(" This is ApacheBench, Version %s <%s> apache-1.3
\n", VERSION, "$Revision: 1.66 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n");