Solr
  1. Solr
  2. SOLR-2310

DocBuilder's getTimeElapsedSince Error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3, 1.4, 1.4.1
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Labels:
      None
    • Environment:

      JDK1.6

      Description

      i has a job which runs about 65 hours, but the dataimport?command=status http requests returns 5 hours.

      in getTimeElapsedSince method of DocBuilder:

       
      static String getTimeElapsedSince(long l) {
          l = System.currentTimeMillis() - l;
          return (l / (60000 * 60)) % 60 + ":" + (l / 60000) % 60 + ":" + (l / 1000)
                  % 60 + "." + l % 1000;
        }
      

      the hours Compute is wrong, it mould be :

       
      static String getTimeElapsedSince(long l) {
          l = System.currentTimeMillis() - l;
          return (l / (60000 * 60)) + ":" + (l / 60000) % 60 + ":" + (l / 1000)
                  % 60 + "." + l % 1000;
        }
      

        Activity

        Hide
        Koji Sekiguchi added a comment -

        Good catch, tom. I'll commit shortly.

        Show
        Koji Sekiguchi added a comment - Good catch, tom. I'll commit shortly.
        Hide
        Koji Sekiguchi added a comment -

        trunk: Committed revision 1057221.
        3x: Committed revision 1057226.

        Show
        Koji Sekiguchi added a comment - trunk: Committed revision 1057221. 3x: Committed revision 1057226.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release

          People

          • Assignee:
            Koji Sekiguchi
            Reporter:
            tom liu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development