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/04/12 17:44:04 UTC
svn commit: r933288 -
/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
Author: ritchiem
Date: Mon Apr 12 15:44:04 2010
New Revision: 933288
URL: http://svn.apache.org/viewvc?rev=933288&view=rev
Log:
QPID-2438 : Implemented option 1. Fixed the divide to correct our message size.
Merged from 0.5.x-dev rev 920765
Modified:
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
Modified: qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java?rev=933288&r1=933287&r2=933288&view=diff
==============================================================================
--- qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java (original)
+++ qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/framework/TestUtils.java Mon Apr 12 15:44:04 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