Author: sebb Date: Mon Nov 27 14:46:29 2006 New Revision: 479794 URL: http://svn.apache.org/viewvc?view=rev&rev=479794 Log: 40804 - Change Counter default to max = Long.MAX_VALUE
Modified: jakarta/jmeter/branches/rel-2-2/src/components/org/apache/jmeter/modifiers/CounterConfig.java jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/component_reference.xml Modified: jakarta/jmeter/branches/rel-2-2/src/components/org/apache/jmeter/modifiers/CounterConfig.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/components/org/apache/jmeter/modifiers/CounterConfig.java?view=diff&rev=479794&r1=479793&r2=479794 ============================================================================== --- jakarta/jmeter/branches/rel-2-2/src/components/org/apache/jmeter/modifiers/CounterConfig.java (original) +++ jakarta/jmeter/branches/rel-2-2/src/components/org/apache/jmeter/modifiers/CounterConfig.java Mon Nov 27 14:46:29 2006 @@ -130,8 +130,16 @@ setProperty(END, end); } + /** + * + * @return counter upper limit (default Long.MAX_VALUE) + */ public long getEnd() { - return getPropertyAsLong(END); + long propertyAsLong = getPropertyAsLong(END); + if (propertyAsLong == 0 && "".equals(getProperty(END).getStringValue())) { + propertyAsLong = Long.MAX_VALUE; + } + return propertyAsLong; } public void setIncrement(long inc) { Modified: jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/component_reference.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/component_reference.xml?view=diff&rev=479794&r1=479793&r2=479794 ============================================================================== --- jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/component_reference.xml (original) +++ jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/component_reference.xml Mon Nov 27 14:46:29 2006 @@ -2793,7 +2793,9 @@ number during the first iteration.</property> <property name="Increment" required="Yes">How much to increment the counter by after each iteration.</property> - <property name="Maximum" required="Yes">If the counter exceeds the maximum, then it is reset to the Start value.</property> + <property name="Maximum" required="No">If the counter exceeds the maximum, then it is reset to the Start value. + Since version 2.2.1, the default is Long.MAX_VALUE (previously it was 0). + </property> <property name="Format" required="No">Optional format, e.g. 000 will format as 001, 002 etc. This is passed to DecimalFormat, so any valid formats can be used. If there is a problem interpreting the format, then it is ignored. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]