Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.3, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      Uptime rendering is off with times longer than a week.

      One of my servers has been up for over a week and is displaying: "Uptime 6 days 49 hours". That should probably be "8 days 5 hours".

      karaf@root> info
      Karaf
      Karaf version 2.2.1
      Karaf home /home/totalgrid/totalgrid-reef-0.3.0-SNAPSHOT
      Karaf base /home/totalgrid/totalgrid-reef-0.3.0-SNAPSHOT
      OSGi Framework org.apache.felix.framework - 3.0.9

      JVM
      Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM version 17.1-b03
      Version 1.6.0_22
      Vendor Sun Microsystems Inc.
      Uptime 6 days 49 hours
      Total compile time 21.472 seconds

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        I reproduce it:

        infoAction.printDuration(50 * 3600 * 1000);

        displays "2 days 5 hours" whereas it should be "2 days 2 hours".

        Show
        Jean-Baptiste Onofré added a comment - I reproduce it: infoAction.printDuration(50 * 3600 * 1000); displays "2 days 5 hours" whereas it should be "2 days 2 hours".
        Hide
        Jean-Baptiste Onofré added a comment -

        Fix on trunk: revision 1150662.

        Show
        Jean-Baptiste Onofré added a comment - Fix on trunk: revision 1150662.
        Hide
        Jean-Baptiste Onofré added a comment -

        Fix on karaf-2.2.x branch: Revision 1150665.

        Show
        Jean-Baptiste Onofré added a comment - Fix on karaf-2.2.x branch: Revision 1150665.

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Sam Hendley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development