httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r819702 - /httpd/httpd/trunk/support/ab.c
Date Mon, 28 Sep 2009 20:12:31 GMT
Author: trawick
Date: Mon Sep 28 20:12:31 2009
New Revision: 819702

URL: http://svn.apache.org/viewvc?rev=819702&view=rev
Log:
when a request body is sent, just display "Total body sent"
in the summary instead of making up the past tense of an 
HTTP method (POST-ed or PUT)

Modified:
    httpd/httpd/trunk/support/ab.c

Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=819702&r1=819701&r2=819702&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Mon Sep 28 20:12:31 2009
@@ -282,7 +282,6 @@
 int recverrok = 0;      /* ok to proceed after socket receive errors */
 enum {NO_METH = 0, GET, HEAD, PUT, POST} method = NO_METH;
 const char *method_str[] = {"bug", "GET", "HEAD", "PUT", "POST"};
-const char *method_str_pasttense[] = {"bug", "bug", "bug", "PUT", "POSTed"};
 int send_body = 0;      /* non-zero if sending body with request */
 int requests = 1;       /* Number of requests to make */
 int heartbeatres = 100; /* How often do we say we're alive */
@@ -805,10 +804,7 @@
         printf("Keep-Alive requests:    %d\n", doneka);
     printf("Total transferred:      %" APR_INT64_T_FMT " bytes\n", totalread);
     if (send_body)
-        printf("Total %s:%*s          %" APR_INT64_T_FMT "\n",
-               method_str_pasttense[method],
-               (int)(7 - strlen(method_str_pasttense[method])),
-               " ",
+        printf("Total body sent:        %" APR_INT64_T_FMT "\n",
                totalposted);
     printf("HTML transferred:       %" APR_INT64_T_FMT " bytes\n", totalbread);
 
@@ -1094,10 +1090,9 @@
        "<td colspan=2 %s>%" APR_INT64_T_FMT " bytes</td></tr>\n",
        trstring, tdstring, tdstring, totalread);
     if (send_body)
-        printf("<tr %s><th colspan=2 %s>Total %s:</th>"
+        printf("<tr %s><th colspan=2 %s>Total body sent:</th>"
            "<td colspan=2 %s>%" APR_INT64_T_FMT "</td></tr>\n",
            trstring, tdstring,
-           method_str_pasttense[method],
            tdstring, totalposted);
     printf("<tr %s><th colspan=2 %s>HTML transferred:</th>"
        "<td colspan=2 %s>%" APR_INT64_T_FMT " bytes</td></tr>\n",



Mime
View raw message