camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1339346 - /camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
Date Wed, 16 May 2012 20:31:36 GMT
Author: cmueller
Date: Wed May 16 20:31:35 2012
New Revision: 1339346

URL: http://svn.apache.org/viewvc?rev=1339346&view=rev
Log:
CAMEL-5277: Forgot a space between hours and minutes in org/apache/camel/util/TimeUtils.java
Thanks Ronald de Haan for the patch

Modified:
    camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java

Modified: camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java?rev=1339346&r1=1339345&r2=1339346&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
(original)
+++ camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
Wed May 16 20:31:35 2012
@@ -60,7 +60,7 @@ public final class TimeUtils {
             long minutes = (long) ((uptime - hours) * 60);
             String s = fmtI.format(hours) + (hours > 1 ? " hours" : " hour");
             if (minutes != 0) {
-                s += " " + fmtI.format(minutes) + (minutes > 1 ? " minutes" : "minute");
+                s += " " + fmtI.format(minutes) + (minutes > 1 ? " minutes" : " minute");
             }
             return s;
         }
@@ -69,7 +69,7 @@ public final class TimeUtils {
         long hours = (long) ((uptime - days) * 60);
         String s = fmtI.format(days) + (days > 1 ? " days" : " day");
         if (hours != 0) {
-            s += " " + fmtI.format(hours) + (hours > 1 ? " hours" : "hour");
+            s += " " + fmtI.format(hours) + (hours > 1 ? " hours" : " hour");
         }
         return s;
     }



Mime
View raw message