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

DocBuilder's getTimeElapsedSince Error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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;
        }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: