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:31:36 UTC
svn commit: r1339346 -
/camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
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;
}