Skip to content

Commit

Permalink
in case of short memory, do not cut down robinson peers to 1, just
Browse files Browse the repository at this point in the history
reduce by 50%
  • Loading branch information
Orbiter committed Apr 23, 2014
1 parent 469e0a6 commit 8e04030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/peers/RemoteSearch.java
Expand Up @@ -159,7 +159,7 @@ public static void primaryRemoteSearches(
if (indexingQueueSize > 0) robinsoncount = Math.max(1, robinsoncount / 2);
if (indexingQueueSize > 10) robinsoncount = Math.max(1, robinsoncount / 2);
if (indexingQueueSize > 50) robinsoncount = Math.max(1, robinsoncount / 2);
if (shortmem) {redundancy = 1; robinsoncount = 1; healthMessage.append(", shortmem");}
if (shortmem) {redundancy = 1; robinsoncount = Math.max(1, robinsoncount / 2); healthMessage.append(", shortmem");}


// prepare seed targets and threads
Expand Down

0 comments on commit 8e04030

Please sign in to comment.