From owner-freebsd-ports@FreeBSD.ORG  Thu Dec  6 08:14:12 2007
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: ports@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2A84A16A417;
	Thu,  6 Dec 2007 08:14:12 +0000 (UTC) (envelope-from yyk99@mail.ru)
Received: from mx4.mail.ru (fallback.mail.ru [194.67.57.14])
	by mx1.freebsd.org (Postfix) with ESMTP id D4CC113C458;
	Thu,  6 Dec 2007 08:14:11 +0000 (UTC) (envelope-from yyk99@mail.ru)
Received: from mx34.mail.ru (mx34.mail.ru [194.67.23.200])
	by mx4.mail.ru (mPOP.Fallback_MX) with ESMTP
	id A5BAB6696F; Thu,  6 Dec 2007 10:57:14 +0300 (MSK)
Received: from [194.87.53.162] (port=52703 helo=BADABOOM)
	by mx34.mail.ru with asmtp 
	id 1J0Bbc-000E6Y-00; Thu, 06 Dec 2007 10:57:12 +0300
Message-ID: <000001c837dd$9cf6cfe0$580110ac@BADABOOM>
From: "Yuri Y Kuznetsov" <yyk99@mail.ru>
To: <clement@FreeBSD.org>
Date: Thu, 6 Dec 2007 10:57:00 +0300
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_0002_01C837F6.BA35A720"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Cc: ports@FreeBSD.org
Subject: FreeBSD Port: apache-2.2.6_2 - patch for support/ab.c
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Dec 2007 08:14:12 -0000

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--