[jboss-cvs] JBoss Messaging SVN: r5057 - in trunk: tests/src/org/jboss/messaging/tests/unit/util and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 1 11:13:14 EDT 2008
Author: clebert.suconic at jboss.com
Date: 2008-10-01 11:13:14 -0400 (Wed, 01 Oct 2008)
New Revision: 5057
Modified:
trunk/src/main/org/jboss/messaging/util/TimeAndCounterIDGenerator.java
trunk/tests/src/org/jboss/messaging/tests/unit/util/TimeAndCounterIDGeneratorTest.java
Log:
just a tweak.. fixing a small mistake on the GT operator
Modified: trunk/src/main/org/jboss/messaging/util/TimeAndCounterIDGenerator.java
===================================================================
--- trunk/src/main/org/jboss/messaging/util/TimeAndCounterIDGenerator.java 2008-10-01 10:04:17 UTC (rev 5056)
+++ trunk/src/main/org/jboss/messaging/util/TimeAndCounterIDGenerator.java 2008-10-01 15:13:14 UTC (rev 5057)
@@ -79,9 +79,9 @@
// Wrapping ID logic
- if (timePortion > newTM())
+ if (timePortion >= newTM())
{
- // Unlikely too happen
+ // Unlikely to happen
wrapped = true;
Modified: trunk/tests/src/org/jboss/messaging/tests/unit/util/TimeAndCounterIDGeneratorTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/util/TimeAndCounterIDGeneratorTest.java 2008-10-01 10:04:17 UTC (rev 5056)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/util/TimeAndCounterIDGeneratorTest.java 2008-10-01 15:13:14 UTC (rev 5057)
@@ -93,8 +93,6 @@
System.out.println("Time = " + hex(System.currentTimeMillis()) + ", " + seq);
- seq.setInternalID(0xfffffffl - 1);
-
final int NUMBER_OF_THREADS = 100;
final int NUMBER_OF_IDS = 10;
More information about the jboss-cvs-commits
mailing list