DocBuilder's getTimeElapsedSince Error
--------------------------------------

                 Key: SOLR-2310
                 URL: https://issues.apache.org/jira/browse/SOLR-2310
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 4.0
         Environment: JDK1.6
            Reporter: tom liu


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

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

the hours Compute is wrong, it mould be :
{noformat} 
static String getTimeElapsedSince(long l) {
    l = System.currentTimeMillis() - l;
    return (l / (60000 * 60)) + ":" + (l / 60000) % 60 + ":" + (l / 1000)
            % 60 + "." + l % 1000;
  }
{noformat} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to