*) Bugfix for last commit

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1506 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2006-01-31 15:26:11 +00:00
parent 22fd1ca9aa
commit 442807cb29
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ public final class IndexImport_p {
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()));
@ -210,7 +210,7 @@ public final class IndexImport_p {
}
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);

View File

@ -46,7 +46,7 @@ public class dbImportManager {
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;
}
}