Skip to content

Commit

Permalink
*) Bugfix for last commit
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1506 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Jan 31, 2006
1 parent 22fd1ca commit 442807c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htroot/IndexImport_p.java
Expand Up @@ -183,7 +183,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
prop.put("running.jobs_" + i + "_percent", Integer.toString(currThread.getProcessingStatusPercent()));
prop.put("running.jobs_" + i + "_elapsed", serverDate.intervalToString(currThread.getElapsedTime()));
prop.put("running.jobs_" + i + "_estimated", serverDate.intervalToString(currThread.getEstimatedTime()));
prop.put("running.jobs_" + i + "_status", currThread.getStatus().replace("\n", "<br>"));
prop.put("running.jobs_" + i + "_status", currThread.getStatus().replaceAll("\n", "<br>"));

// job number of the importer thread
prop.put("running.jobs_" + i + "_job_nr", Integer.toString(currThread.getJobID()));
Expand All @@ -210,7 +210,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
}
prop.put("finished.jobs_" + i + "_percent", Integer.toString(currThread.getProcessingStatusPercent()));
prop.put("finished.jobs_" + i + "_elapsed", serverDate.intervalToString(currThread.getElapsedTime()));
prop.put("finished.jobs_" + i + "_status", currThread.getStatus().replace("\n", "<br>"));
prop.put("finished.jobs_" + i + "_status", currThread.getStatus().replaceAll("\n", "<br>"));
}
prop.put("finished.jobs",finishedJobs.length);

Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/dbImport/dbImportManager.java
Expand Up @@ -46,7 +46,7 @@ public dbImporter getImporterByID(int jobID) {

for (int i=0; i < activeCount; i++) {
dbImporter currThread = (dbImporter) importThreads[i];
if (currThread.getJobID() == Integer.valueOf(jobID).intValue()) {
if (currThread.getJobID() == jobID) {
return currThread;
}
}
Expand Down

0 comments on commit 442807c

Please sign in to comment.