tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r381488 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java
Date Mon, 27 Feb 2006 23:34:49 GMT
Author: fhanik
Date: Mon Feb 27 15:34:46 2006
New Revision: 381488

URL: http://svn.apache.org/viewcvs?rev=381488&view=rev
Log:
Fixed so that the pause is not calculated in the send time

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java?rev=381488&r1=381487&r2=381488&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/demos/LoadTest.java
Mon Feb 27 15:34:46 2006
@@ -102,11 +102,11 @@
                             printArray(msg.getMessage());
                         }
                         channel.send(null, msg);
+                        sendTime += (System.currentTimeMillis() - start);
                         if ( pause > 0 ) {
                             if ( debug) System.out.println("Pausing sender for "+pause+"
ms.");
                             Thread.sleep(pause);
                         }
-                        sendTime += (System.currentTimeMillis() - start);
                     } catch (ChannelException x) {
                         log.error("Unable to send message.");
                         Member[] faulty = x.getFaultyMembers();



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


Mime
View raw message