jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wool...@apache.org
Subject cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/visualizers SamplingStatCalculator.java
Date Fri, 08 Oct 2004 18:08:14 GMT
woolfel     2004/10/08 11:08:14

  Modified:    src/core/org/apache/jmeter/visualizers
                        SamplingStatCalculator.java
  Log:
  min and error rate now return 0 in the even the value is less than zero.
  
  this fixes bug 30649
  
  peter
  
  Revision  Changes    Path
  1.3       +10 -3     jakarta-jmeter/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java
  
  Index: SamplingStatCalculator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SamplingStatCalculator.java	18 Sep 2004 05:04:55 -0000	1.2
  +++ SamplingStatCalculator.java	8 Oct 2004 18:08:13 -0000	1.3
  @@ -327,6 +327,9 @@
       public String getErrorPercentageString()
       {
           double myErrorPercentage = this.getErrorPercentage();
  +        if (myErrorPercentage < 0){
  +        	myErrorPercentage = 0.0;
  +        }
   
           return (errorFormatter.format(myErrorPercentage));
       }
  @@ -409,7 +412,11 @@
       */
      public Number getMin()
      {
  -      return calculator.getMin();
  +      if (calculator.getMin().longValue() < 0){
  +      	return new Long(0);
  +      } else {
  +		return calculator.getMin();
  +      }
      }
      /**
       * @param percent
  
  
  

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


Mime
View raw message