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/ab745dda
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ab745dda
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ab745dda

Branch: refs/heads/camel-2.18.x
Commit: ab745dda1b4eebe55b599363ba1670be7c53d530
Parents: b39c140
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:37:05 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/ab745dda/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