mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
22.38.2014 0440760ba5af5211e7da2a120d708f11079973c4
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java
@@ -24,7 +24,6 @@
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2011-2014 ForgeRock AS.
 */
package com.forgerock.opendj.ldap.tools;
import static org.forgerock.util.Utils.closeSilently;
@@ -420,7 +419,7 @@
            Connection connection;
            final double targetTimeInMS =
                    (1000.0 / (targetThroughput / (double) (numThreads * numConnections)));
                    1000.0 / (targetThroughput / (double) (numThreads * numConnections));
            double sleepTimeInMS = 0;
            long start;
            while (!stopRequested && !(maxIterations > 0 && count >= maxIterations)) {
@@ -629,11 +628,9 @@
    private final ConsoleApplication app;
    private DataSource[] dataSourcePrototypes;
    // Thread local copies of the data sources
    /** Thread local copies of the data sources. */
    private final ThreadLocal<DataSource[]> dataSources = new ThreadLocal<DataSource[]>() {
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        @Override
        protected DataSource[] initialValue() {
            final DataSource[] prototypes = getDataSources();