httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: httpd-2.0/support ab.c
Date Fri, 30 Aug 2002 12:26:14 GMT
martin      2002/08/30 05:26:14

  Modified:    .        CHANGES
               support  ab.c
  Log:
  Leon Brocard writes:
  > Hello,
  >
  > I love httpd2 and I really like apachebench but using the gnuplot
  > output option (-g) gave me this:
  >
  >   starttime       seconds ctime   dtime   ttime   wait
  >   Thu Aug 29 12:29:31 200        1030620571362758        0       54      54      0
  >
  > It's truncating the year. Now according to
  > http://apr.apache.org/docs/apr/group__APR__Time.html#a15 "Unlike
  > ANSI/ISO C ctime(), apr_ctime() does not include a \n", so the code
  > and comment in ab.c are wrong, hence my attached patch to remove them.
  
  Submitted by:	Leon Brocard <acme@astray.com>
  
  Revision  Changes    Path
  1.907     +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.906
  retrieving revision 1.907
  diff -u -r1.906 -r1.907
  --- CHANGES	29 Aug 2002 23:14:51 -0000	1.906
  +++ CHANGES	30 Aug 2002 12:26:13 -0000	1.907
  @@ -1,5 +1,8 @@
   Changes with Apache 2.0.41
   
  +  *) Fix "ab -g"'s truncated year: the last digit was cut off.
  +     [Leon Brocard <acme@astray.com>]
  +
     *) mod_rewrite can now sets cookies in err_headers, uses the correct
        expiry date, and can now set the path as well
        PR 12132,12181,12172.
  
  
  
  1.117     +2 -5      httpd-2.0/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/ab.c,v
  retrieving revision 1.116
  retrieving revision 1.117
  diff -u -r1.116 -r1.117
  --- ab.c	3 Aug 2002 22:01:40 -0000	1.116
  +++ ab.c	30 Aug 2002 12:26:14 -0000	1.117
  @@ -953,9 +953,6 @@
   
   		sttime = stats[i].starttime;
   		(void) apr_ctime(tmstring, sttime);
  -		tmstring[strlen(tmstring) - 1] = '\0';	/* ctime returns a
  -							 * string with a
  -							 * trailing newline */
   		fprintf(out, "%s\t%" APR_TIME_T_FMT "\t%" APR_TIME_T_FMT "\t%" APR_TIME_T_FMT "\t%" APR_TIME_T_FMT
"\t%" APR_TIME_T_FMT "\n",
   			tmstring,
   			sttime,
  
  
  

Mime
View raw message