Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2310

DocBuilder's getTimeElapsedSince Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.3, 1.4, 1.4.1
    • 3.1, 4.0-ALPHA
    • None
    • 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;
        }
      

      Attachments

        Activity

          People

            koji Koji Sekiguchi
            tom_lt tom liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: