httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sas...@apache.org
Subject cvs commit: apache-1.3/src/support ab.c
Date Sun, 20 May 2001 12:41:47 GMT
sascha      01/05/20 05:41:46

  Modified:    src/support ab.c
  Log:
  Fix floating point exceptions on FreeBSD which occured, if
  heartbeatres was set to 0.
  
  Revision  Changes    Path
  1.51      +4 -4      apache-1.3/src/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/support/ab.c,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -u -r1.50 -r1.51
  --- ab.c	2001/05/10 17:25:00	1.50
  +++ ab.c	2001/05/20 12:41:46	1.51
  @@ -950,7 +950,7 @@
   	/* save out time */
   	if (done < requests) {
   	    struct data s;
  -	    if ((done) && (!(done % heartbeatres))) {
  +	    if ((done) && (heartbeatres) && (!(done % heartbeatres))) {
   		fprintf(stderr, "Completed %d requests\n", done);
   		fflush(stderr);
   	    }
  @@ -1129,7 +1129,7 @@
   	}
   	if (done < requests) {
   	    struct data s;
  -	    if ((done) && (!(done % heartbeatres))) {
  +	    if ((done) && (heartbeatres) && (!(done % heartbeatres))) {
   		fprintf(stderr, "Completed %d requests\n", done);
   		fflush(stderr);
   	    }
  @@ -1323,14 +1323,14 @@
   static void copyright(void)
   {
       if (!use_html) {
  -	printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.50 $> apache-1.3");
  +	printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.51 $> apache-1.3");
   	printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
   	printf("Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/\n");
   	printf("\n");
       }
       else {
   	printf("<p>\n");
  -	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-1.3<br>\n",
VERSION, "$Revision: 1.50 $");
  +	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-1.3<br>\n",
VERSION, "$Revision: 1.51 $");
   	printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
   	printf(" Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/<br>\n");
   	printf("</p>\n<p>\n");
  
  
  

Mime
View raw message