httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Brocard <a...@astray.com>
Subject [PATCH] ab.c gnuplot starttime truncation fix
Date Thu, 29 Aug 2002 11:49:27 GMT
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 " "

Mime
View raw message