Index Transfer:

- fix for chunk size calculation
- fix: if chunk size was 1, an infinite selection loop ran because no entries were found. if chunk size fails <=3 it will be set back to 500

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5023 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 17 years ago
parent 0baa8d651e
commit 0b2f67577e

@ -253,8 +253,10 @@ public class plasmaDHTFlush extends Thread {
this.chunkSize-=100;
} else if (selectionTime < transferTime){
this.chunkSize +=100;
} else if (selectionTime >= selectionTime && this.chunkSize>200){
} else if (selectionTime >= transferTime && this.chunkSize>200){
this.chunkSize-=100;
} else if (this.chunkSize <= 3){
this.chunkSize = 500;
}
}

Loading…
Cancel
Save