Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x f5b23bf07 -> 63c97d850
  refs/heads/master da4b458d3 -> 6d290b443


Update SubmitOrderedCompletionService.java

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5ee08af9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5ee08af9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5ee08af9

Branch: refs/heads/master
Commit: 5ee08af9168cc2202974a51f8c5a5bda4d394fa1
Parents: c5042d9
Author: leofromgroza <vishka.na...@gmail.com>
Authored: Thu Sep 7 11:25:31 2017 +0300
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Fri Sep 8 10:16:49 2017 +0200

----------------------------------------------------------------------
 .../camel/util/concurrent/SubmitOrderedCompletionService.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5ee08af9/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
 
b/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
index f828427..7b63480 100644
--- 
a/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
+++ 
b/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
@@ -63,7 +63,7 @@ public class SubmitOrderedCompletionService<V> implements 
CompletionService<V> {
 
         public long getDelay(TimeUnit unit) {
             // if the answer is 0 then this task is ready to be taken
-            return unit.convert(id - index.get(), TimeUnit.SECONDS);
+            return unit.convert(id - index.get(), TimeUnit.MILLISECONDS);
         }
 
         @SuppressWarnings("unchecked")

Reply via email to