You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Leon Brocard <ac...@astray.com> on 2002/08/29 13:49:27 UTC

[PATCH] ab.c gnuplot starttime truncation fix

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.

Leon

FWIW gnuplot can't actually read the file (it can't read the header or
the starttime), but i'm parsing it with Perl anyway
-- 
Leon Brocard.............................http://www.astray.com/
scribot.................................http://www.scribot.com/

... Todays subliminal message is " "

Re: [PATCH] ab.c gnuplot starttime truncation fix

Posted by Martin Kraemer <Ma...@Fujitsu-Siemens.com>.
On Thu, Aug 29, 2002 at 12:49:27PM +0100, Leon Brocard wrote:
>
>   Thu Aug 29 12:29:31 200        1030620571362758        0       54      54      0
> 
> It's truncating the year.

Thanks, committed.

   Martin
-- 
<Ma...@Fujitsu-Siemens.com>         |     Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730  Munich,  Germany