]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix floating point exceptions on FreeBSD which occured, if
authorSascha Schumann <sascha@apache.org>
Sun, 20 May 2001 12:41:46 +0000 (12:41 +0000)
committerSascha Schumann <sascha@apache.org>
Sun, 20 May 2001 12:41:46 +0000 (12:41 +0000)
heartbeatres was set to 0.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89174 13f79535-47bb-0310-9956-ffa450edef68

src/support/ab.c

index e55f271a7525c354638e35ed9f7083742e7554f3..4ccd2c50ebcda94680b7df9e3aec2521556f82a6 100644 (file)
@@ -950,7 +950,7 @@ static void close_connection(struct connection * c)
        /* 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 @@ static void read_connection(struct connection * c)
        }
        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 test(void)
 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");