ASF Bugzilla – Attachment 23634 Details for
Bug 39509
Once-only controller running twice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposal patch
patch_39509.txt (text/plain), 1.63 KB, created by
Milamber
on 2009-05-10 10:26:21 UTC
(
hide
)
Description:
Proposal patch
Filename:
MIME Type:
Creator:
Milamber
Created:
2009-05-10 10:26:21 UTC
Size:
1.63 KB
patch
obsolete
>Index: /Workspaces-JMeter/Jmeter/src/core/org/apache/jmeter/control/LoopController.java >=================================================================== >--- /Workspaces-JMeter/Jmeter/src/core/org/apache/jmeter/control/LoopController.java (revision 773337) >+++ /Workspaces-JMeter/Jmeter/src/core/org/apache/jmeter/control/LoopController.java (working copy) >@@ -49,7 +49,7 @@ > */ > private final static String CONTINUE_FOREVER = "LoopController.continue_forever"; // $NON-NLS-1$ > >- private transient int loopCount = 0; >+ private transient int loopCount = -1; > > public LoopController() { > setContinueForever_private(true); >@@ -110,7 +110,7 @@ > } > > private boolean endOfLoop() { >- final int loops = getLoops(); >+ final int loops = (getLoops() - 1); > return (loops > -1) && (loopCount >= loops); > } > >@@ -137,7 +137,7 @@ > } > > protected void resetLoopCount() { >- loopCount = 0; >+ loopCount = -1; > } > > /* >Index: /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java >=================================================================== >--- /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java (revision 773361) >+++ /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java (working copy) >@@ -39,7 +39,7 @@ > * @see LoopIterationListener#iterationStart(LoopIterationEvent) > */ > public void iterationStart(LoopIterationEvent event) { >- if (event.getIteration() == 1) { >+ if (event.getIteration() == 0) { > reInitialize(); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39509
:
20179
|
20192
|
21233
| 23634 |
23635
|
23636
|
23737
|
23738