Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2007 10:57:00 +0300
From:      "Yuri Y Kuznetsov" <yyk99@mail.ru>
To:        <clement@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: apache-2.2.6_2 - patch for support/ab.c
Message-ID:  <000001c837dd$9cf6cfe0$580110ac@BADABOOM>

Next in thread | Raw E-Mail | Index | Archive | Help
This is a multi-part message in MIME format.

------=_NextPart_000_0002_01C837F6.BA35A720
Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original
Content-Transfer-Encoding: 7bit

Hello!

Recently I found that ab (apache benchmark) utility prints small time 
intervals incorrectly.
The problem is the wrong printf format for microsecond intervals.

There the `patch' to address the problem in the attachment.

Thank you,
Yuri Kuznetsov

------=_NextPart_000_0002_01C837F6.BA35A720
Content-Type: application/octet-stream;
	name="ab.c.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="ab.c.diff"

*** ab.c.orig	Thu Dec  6 10:35:38 2007=0A=
--- ab.c	Thu Dec  6 10:38:31 2007=0A=
***************=0A=
*** 749,751 ****=0A=
      printf("Concurrency Level:      %d\n", concurrency);=0A=
!     printf("Time taken for tests:   %ld.%03ld seconds\n",=0A=
             (long) apr_time_sec(timetakenusec),=0A=
--- 749,751 ----=0A=
      printf("Concurrency Level:      %d\n", concurrency);=0A=
!     printf("Time taken for tests:   %ld.%06ld seconds\n",=0A=
             (long) apr_time_sec(timetakenusec),=0A=
***************=0A=
*** 1009,1011 ****=0A=
      printf("<tr %s><th colspan=3D2 %s>Time taken for tests:</th>"=0A=
!        "<td colspan=3D2 %s>%" APR_INT64_T_FMT ".%03ld =
seconds</td></tr>\n",=0A=
         trstring, tdstring, tdstring, apr_time_sec(timetaken),=0A=
--- 1009,1011 ----=0A=
      printf("<tr %s><th colspan=3D2 %s>Time taken for tests:</th>"=0A=
!        "<td colspan=3D2 %s>%" APR_INT64_T_FMT ".%06ld =
seconds</td></tr>\n",=0A=
         trstring, tdstring, tdstring, apr_time_sec(timetaken),=0A=

------=_NextPart_000_0002_01C837F6.BA35A720--




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001c837dd$9cf6cfe0$580110ac>