--- jsr166/src/test/loops/TimeoutExchangerLoops.java 2009/10/29 23:09:08 1.4 +++ jsr166/src/test/loops/TimeoutExchangerLoops.java 2011/03/15 19:47:06 1.7 @@ -1,7 +1,7 @@ /* * Written by Bill Scherer and Doug Lea with assistance from members * of JCP JSR-166 Expert Group and released to the public domain, as - * explained at http://creativecommons.org/licenses/publicdomain + * explained at http://creativecommons.org/publicdomain/zero/1.0/ */ import java.util.concurrent.*; @@ -36,13 +36,13 @@ public class TimeoutExchangerLoops { argc++; } - // Display runtime parameters - System.out.print("TimeoutExchangerTest"); - System.out.print(" -t " + trialMillis); - System.out.print(" -p " + patienceNanos); + // Display runtime parameters + System.out.print("TimeoutExchangerTest"); + System.out.print(" -t " + trialMillis); + System.out.print(" -p " + patienceNanos); System.out.print(" -r " + nReps); - System.out.print(" max threads " + maxThreads); - System.out.println(); + System.out.print(" max threads " + maxThreads); + System.out.println(); System.out.println("Warmups.."); long warmupTime = 1000; @@ -103,7 +103,7 @@ public class TimeoutExchangerLoops { if (iters <= 0) iters = 1; long rate = iters * 1000L * 1000L * 1000L / elapsed; long npt = elapsed / iters; - double failRate = (fails * 100.0) / (double)iters; + double failRate = (fails * 100.0) / (double) iters; System.out.printf("%9d it/s ", rate); System.out.printf("%9d ns/it", npt); System.out.printf("%9.5f%% fails", failRate);