You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by an...@apache.org on 2002/12/09 17:43:21 UTC

cvs commit: xml-axis-wsif/java/test/performance Monitor.java

antelder    2002/12/09 08:43:21

  Modified:    java/test/performance Monitor.java
  Log:
  Fix bug to allow monitor timings with a single iteration
  
  Revision  Changes    Path
  1.6       +1 -1      xml-axis-wsif/java/test/performance/Monitor.java
  
  Index: Monitor.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/performance/Monitor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Monitor.java	7 Dec 2002 12:34:02 -0000	1.5
  +++ Monitor.java	9 Dec 2002 16:43:21 -0000	1.6
  @@ -201,7 +201,7 @@
      	   } else {
      	      interval += thisInterval;
      	      totalTime += thisInterval;
  -   	      if ( minimumInterval > 0 && interval < minimumInterval ) {
  +   	      if ( startCount > 1 && minimumInterval > 0 && interval < minimumInterval ) {
      	         minimumInterval = interval;
      	         errorInterval = minimumInterval + CLOCK_ACCURACY;
      	         startCount = 0;