Could you please post this to bugzilla? The commiter team is currently undermanned and your patch could be lost if it's not stored permanently somewhere.
Salut,
Jordi.
Byron Foster wrote:
Fixes the counter in CounterConfig so that when the counter is greater than or equal to the end value, it rolls around to start, and not always to 0.Byron Index: src/components/org/apache/jmeter/modifiers/CounterConfig.java =================================================================== RCS file: /home/cvspublic/jakarta-jmeter/src/components/org/apache/jmeter/modifiers/CounterConfig.java,v retrieving revision 1.2 diff -u -r1.2 CounterConfig.java --- src/components/org/apache/jmeter/modifiers/CounterConfig.java 30 Aug 2002 14:43:19 -0000 1.2 +++ src/components/org/apache/jmeter/modifiers/CounterConfig.java 10 Dec 2002 05:03:31 -0000 @@ -33,19 +33,19 @@ public synchronized void iterationStarted(int iterationCount) { JMeterVariables variables = vars.getVariables(); + int value = 0; if(perUser) { - int value = start + (increment * (iterationCount-1)); - value = value % end; - variables.put(getVarName(),Integer.toString(value)); + value = start + (increment * (iterationCount-1)); } else { globalCounter++; - int value = start + (increment * globalCounter); - value = value % end; - variables.put(getVarName(),Integer.toString(value)); - } + value = start + (increment * globalCounter); + } + + value = start + ((value-start) % (end-start)); + variables.put(getVarName(),Integer.toString(value)); } /** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
