https://issues.apache.org/bugzilla/show_bug.cgi?id=51480

--- Comment #12 from baerrach <[email protected]> 2011-07-18 05:27:04 UTC ---
ConstantThroughputTimer.setCalcMode becomes:

    /**
     * Setting this has the side effect of sharing <code>throughputInfo</code>
if the mode is
     * <em>shared</em> and sampling has started.
     *
     * @param mode
     *            the delay calculation mode
     */
    public void setCalcMode(String mode) {
        this.calcMode = mode;
        // TODO find better way to get modeInt
        this.modeInt =
ConstantThroughputTimerBeanInfo.getCalcModeAsInt(calcMode);

        if (JMeterContextService.getContext().isSamplingStarted()) {
            switch (modeInt) {
            case CALC_MODE_4_ALL_ACTIVE_THREADS_SHARED:
                throughputInfo = allThreadsInfo;
                break;

            case CALC_MODE_5_ALL_ACTIVE_THREADS_IN_CURRENT_THREAD_GROUP_SHARED:
                final org.apache.jmeter.threads.AbstractThreadGroup group =
JMeterContextService
                        .getContext().getThreadGroup();
                /*
                 * Share the first thread's throughputInfo
                 */
                threadGroupsInfoMap.putIfAbsent(group, throughputInfo);
                throughputInfo = threadGroupsInfoMap.get(group);
                break;
            }
        }
    }

But my ant tests are no longer working...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to