You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2012/05/16 22:30:30 UTC

svn commit: r1339345 - /camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java

Author: cmueller
Date: Wed May 16 20:30:30 2012
New Revision: 1339345

URL: http://svn.apache.org/viewvc?rev=1339345&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.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java

Modified: camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java?rev=1339345&r1=1339344&r2=1339345&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java (original)
+++ camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java Wed May 16 20:30:30 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;
     }