Skip to content

Commit

Permalink
Index Transfer:
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
lotus committed Jul 27, 2008
1 parent 0baa8d6 commit 0b2f675
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/de/anomic/plasma/plasmaDHTFlush.java
Expand Up @@ -253,9 +253,11 @@ private void calculateNewChunkSize() {
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;
}
}

private static boolean nothingSelected(plasmaDHTChunk newDHTChunk) {
Expand Down

0 comments on commit 0b2f675

Please sign in to comment.