You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2010/03/09 11:06:17 UTC
svn commit: r920765 -
/qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
Author: ritchiem
Date: Tue Mar 9 10:06:17 2010
New Revision: 920765
URL: http://svn.apache.org/viewvc?rev=920765&view=rev
Log:
QPID-2438 : Implemented option 1. Fixed the divide to correct our message size.
Modified:
qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
Modified: qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
URL: http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java?rev=920765&r1=920764&r2=920765&view=diff
==============================================================================
--- qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java (original)
+++ qpid/branches/0.5.x-dev/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java Tue Mar 9 10:06:17 2010
@@ -128,8 +128,8 @@ public class TestUtils
if (size > 0)
{
- int div = MESSAGE_DATA_BYTES.length / size;
- int mod = MESSAGE_DATA_BYTES.length % size;
+ int div = size / MESSAGE_DATA_BYTES.length;
+ int mod = size % MESSAGE_DATA_BYTES.length;
for (int i = 0; i < div; i++)
{
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org