You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2011/01/10 16:00:46 UTC
[jira] Resolved: (SOLR-2310) DocBuilder's getTimeElapsedSince Error
[ https://issues.apache.org/jira/browse/SOLR-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Sekiguchi resolved SOLR-2310.
----------------------------------
Resolution: Fixed
trunk: Committed revision 1057221.
3x: Committed revision 1057226.
> 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: 1.3, 1.4, 1.4.1
> Environment: JDK1.6
> Reporter: tom liu
> Assignee: Koji Sekiguchi
> Priority: Trivial
> Fix For: 3.1, 4.0
>
>
> 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