[slf4j-dev] svn commit: r1124 - slf4j/trunk/slf4j-api/src/test/java/org/slf4j/helpers

ceki at slf4j.org ceki at slf4j.org
Mon Sep 8 21:13:59 CEST 2008


Author: ceki
Date: Mon Sep  8 21:13:59 2008
New Revision: 1124

Modified:
   slf4j/trunk/slf4j-api/src/test/java/org/slf4j/helpers/BogoPerf.java

Log:
- minor changes

Modified: slf4j/trunk/slf4j-api/src/test/java/org/slf4j/helpers/BogoPerf.java
==============================================================================
--- slf4j/trunk/slf4j-api/src/test/java/org/slf4j/helpers/BogoPerf.java	(original)
+++ slf4j/trunk/slf4j-api/src/test/java/org/slf4j/helpers/BogoPerf.java	Mon Sep  8 21:13:59 2008
@@ -79,18 +79,18 @@
    * typically the time (duration) needed to perform a task.
    * 
    * @param currentDuration
-   * @param referenceDuraion
+   * @param referenceDuration
    * @param referenceBIPS
    * @throws AssertionFailedError
    */
   public static void assertDuration(double currentDuration,
-      long referenceDuraion, double referenceBIPS)
+      long referenceDuration, double referenceBIPS)
       throws AssertionFailedError {
-    double ajustedDuration = adjustExpectedDuration(referenceDuraion,
+    double ajustedDuration = adjustExpectedDuration(referenceDuration,
         referenceBIPS);
     if (currentDuration > ajustedDuration * SLACK_FACTOR) {
-      throw new AssertionFailedError(currentDuration + " exceeded expected "
-          + ajustedDuration + " (adjusted), " + referenceDuraion + " (raw)");
+      throw new AssertionFailedError("current duration "+ currentDuration + " exceeded expected "
+          + ajustedDuration + " (adjusted reference), " + referenceDuration + " (raw reference)");
     }
   }
   /**
@@ -122,6 +122,7 @@
   private static double adjustExpectedDuration(long referenceDuration,
       double referenceBIPS) {
     double currentBIPS = currentBIPS();
+    System.out.println("currentBIPS="+currentBIPS + " BIPS");
     return referenceDuration * (referenceBIPS / currentBIPS);
   }
 }



More information about the slf4j-dev mailing list