You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/02/22 20:17:22 UTC

cvs commit: jakarta-jmeter/src/components/org/apache/jmeter/modifiers CounterConfig.java

sebb        2004/02/22 11:17:22

  Modified:    src/components/org/apache/jmeter/modifiers
                        CounterConfig.java
  Log:
  For speed, use getThreadContext() instead of JMeterContextService
  
  Revision  Changes    Path
  1.20      +3 -5      jakarta-jmeter/src/components/org/apache/jmeter/modifiers/CounterConfig.java
  
  Index: CounterConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/modifiers/CounterConfig.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- CounterConfig.java	13 Feb 2004 01:39:06 -0000	1.19
  +++ CounterConfig.java	22 Feb 2004 19:17:22 -0000	1.20
  @@ -26,7 +26,6 @@
   import org.apache.jmeter.testelement.AbstractTestElement;
   import org.apache.jmeter.testelement.property.BooleanProperty;
   import org.apache.jmeter.testelement.property.IntegerProperty;
  -import org.apache.jmeter.threads.JMeterContextService;
   import org.apache.jmeter.threads.JMeterVariables;
   import org.apache.jorphan.logging.LoggingManager;
   import org.apache.log.Logger;
  @@ -52,8 +51,7 @@
        */
       public synchronized void iterationStart(LoopIterationEvent event)
       {
  -        JMeterVariables variables =
  -            JMeterContextService.getContext().getVariables();
  +        JMeterVariables variables = getThreadContext().getVariables();
           int start = getStart(), end = getEnd(), increment = getIncrement();
           if (!isPerUser())
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org