camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1348346 - in /camel/branches/camel-2.9.x: ./ camel-core/src/main/java/org/apache/camel/util/TimeUtils.java
Date Sat, 09 Jun 2012 10:09:02 GMT
Author: ningjiang
Date: Sat Jun  9 10:09:01 2012
New Revision: 1348346

URL: http://svn.apache.org/viewvc?rev=1348346&view=rev
Log:
Merged revisions 1348341 via svnmerge from 
https://svn.apache.org/repos/asf/camel/trunk

........
  r1348341 | ningjiang | 2012-06-09 17:24:15 +0800 (Sat, 09 Jun 2012) | 1 line
  
  CAMEL-5348 fix the issue of Uptime
........

Modified:
    camel/branches/camel-2.9.x/   (props changed)
    camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/util/TimeUtils.java

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1348341

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

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=1348346&r1=1348345&r2=1348346&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
Sat Jun  9 10:09:01 2012
@@ -39,7 +39,7 @@ public final class TimeUtils {
      */
     public static String printDuration(double uptime) {
         // Code taken from Karaf
-        // https://svn.apache.org/repos/asf/felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java
+        // https://svn.apache.org/repos/asf/karaf/trunk/shell/commands/src/main/java/org/apache/karaf/shell/commands/impl/InfoAction.java
 
         NumberFormat fmtI = new DecimalFormat("###,###", new DecimalFormatSymbols(Locale.ENGLISH));
         NumberFormat fmtD = new DecimalFormat("###,##0.000", new DecimalFormatSymbols(Locale.ENGLISH));
@@ -66,7 +66,7 @@ public final class TimeUtils {
         }
         uptime /= 24;
         long days = (long) uptime;
-        long hours = (long) ((uptime - days) * 60);
+        long hours = (long) ((uptime - days) * 24);
         String s = fmtI.format(days) + (days > 1 ? " days" : " day");
         if (hours != 0) {
             s += " " + fmtI.format(hours) + (hours > 1 ? " hours" : " hour");



Mime
View raw message