camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: fix incorrect Time factory methods
Date Thu, 24 Mar 2016 21:10:13 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 2fa5943e5 -> d60324cbd
  refs/heads/camel-2.17.x 8cea456b5 -> f8ffff5da
  refs/heads/master a351e3a4b -> b4e7644bd


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

Branch: refs/heads/master
Commit: b4e7644bdd83e96f454847718738c66024401d3c
Parents: a351e3a
Author: Ernestas Mitkus <ernestas@inventi.lt>
Authored: Thu Mar 24 17:29:24 2016 +0200
Committer: Ernestas Mitkus <ernestas@inventi.lt>
Committed: Thu Mar 24 17:29:26 2016 +0200

----------------------------------------------------------------------
 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/b4e7644b/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() {


Mime
View raw message