Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 82071 invoked from network); 17 Nov 2007 17:24:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2007 17:24:47 -0000 Received: (qmail 56898 invoked by uid 500); 17 Nov 2007 17:24:34 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 56827 invoked by uid 500); 17 Nov 2007 17:24:33 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 56818 invoked by uid 99); 17 Nov 2007 17:24:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 09:24:33 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 17:24:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8E5831A9832; Sat, 17 Nov 2007 09:24:25 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r595975 - /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java Date: Sat, 17 Nov 2007 17:24:25 -0000 To: commits@commons.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071117172425.8E5831A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: psteitz Date: Sat Nov 17 09:24:24 2007 New Revision: 595975 URL: http://svn.apache.org/viewvc?rev=595975&view=rev Log: Eliminated unnecessary cast/conversion, javadoc fixes. Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java?rev=595975&r1=595974&r2=595975&view=diff ============================================================================== --- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java (original) +++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java Sat Nov 17 09:24:24 2007 @@ -37,7 +37,7 @@ * repeatedly. If per-request setup is required, and you do not want the time * associated with this setup to be included in the reported timings, implement * setUp and put the setup code there. Similarly for - * cleanUp. Initiatlization code that needs to be executed once + * cleanUp. Initialization code that needs to be executed once * only, before any requests are initiated, should be put into * init.

* @@ -102,6 +102,7 @@ * @param peakOeriod peak period of cycle for cyclic load * @param troughPeriod trough period of cycle for cyclic load * @param cycleType type of cycle for mean delay + * @param rampType type of ramp (linear or random jumps) * @param logger common logger shared by all clients * @param statsList List of SummaryStatistics to add results to */ @@ -280,7 +281,6 @@ * mean 250ms. Note that when rampType is "none," the value of * minDelay is used as the (constant) mean delay. * - * @param currentTime current time * @return next value for delay */ protected long nextDelay() throws ConfigurationException { @@ -327,7 +327,7 @@ if (delayType.equals("gaussian")) { return Math.round(randomData.nextGaussian(targetDelay, sigma)); } else { // must be Poisson - return Math.round(randomData.nextPoisson(targetDelay)); + return randomData.nextPoisson(targetDelay); } }