You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/03/24 22:10:14 UTC
[2/3] camel git commit: fix incorrect Time factory methods
fix incorrect Time factory methods
Time#minutes(long)
Time#hours(long)
Time#days(long)
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f8ffff5d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f8ffff5d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f8ffff5d
Branch: refs/heads/camel-2.17.x
Commit: f8ffff5dad5d6f5548cfe13c9e2d0999b221115d
Parents: 8cea456
Author: Ernestas Mitkus <er...@inventi.lt>
Authored: Thu Mar 24 17:29:24 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Mar 24 22:00:33 2016 +0100
----------------------------------------------------------------------
camel-core/src/main/java/org/apache/camel/util/Time.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/f8ffff5d/camel-core/src/main/java/org/apache/camel/util/Time.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/Time.java b/camel-core/src/main/java/org/apache/camel/util/Time.java
index eb06daa..2b793e7 100644
--- a/camel-core/src/main/java/org/apache/camel/util/Time.java
+++ b/camel-core/src/main/java/org/apache/camel/util/Time.java
@@ -43,15 +43,15 @@ public class Time {
}
public static Time minutes(long value) {
- return new Time(minutesAsSeconds(value), TimeUnit.MILLISECONDS);
+ return new Time(minutesAsSeconds(value), TimeUnit.SECONDS);
}
public static Time hours(long value) {
- return new Time(hoursAsSeconds(value), TimeUnit.MILLISECONDS);
+ return new Time(hoursAsSeconds(value), TimeUnit.SECONDS);
}
public static Time days(long value) {
- return new Time(daysAsSeconds(value), TimeUnit.MILLISECONDS);
+ return new Time(daysAsSeconds(value), TimeUnit.SECONDS);
}
public long toMillis() {