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 
  * <code>setUp</code> and put the setup code there.  Similarly for 
- * <code>cleanUp</code>. Initiatlization code that needs to be executed once
+ * <code>cleanUp</code>. Initialization code that needs to be executed once
  * only, before any requests are initiated, should be put into 
  * <code>init.</code></p>
  * 
@@ -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 
      * <code>minDelay</code> is used as the (constant) mean delay.</li></ol>
      * 
-     * @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);
         } 
     }
     


Reply via email to