lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tom liu (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-2310) DocBuilder's getTimeElapsedSince Error
Date Mon, 10 Jan 2011 03:02:47 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message