* fix automatic decrementing accepted remote crawl limit:

-> http://forum.yacy-websuche.de/viewtopic.php?f=5&t=1355


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5025 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
f1ori 17 years ago
parent d02a26d642
commit 6952b13c08

@ -167,9 +167,9 @@ public class ConfigNetwork_p {
prop.put("crawlResponse", sb.getConfigBool("crawlResponse", false) ? "1" : "0");
long RTCbusySleep = 100;
try {
RTCbusySleep = Integer.parseInt(env.getConfig(plasmaSwitchboard.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_BUSYSLEEP, "100"));
RTCbusySleep = Math.max(1, Integer.parseInt(env.getConfig(plasmaSwitchboard.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_BUSYSLEEP, "100")));
} catch (NumberFormatException e) {}
int RTCppm = (int) (60000L / (RTCbusySleep + 1));
int RTCppm = (int) (60000L / RTCbusySleep);
prop.put("acceptCrawlLimit", RTCppm);
boolean indexDistribute = sb.getConfig(plasmaSwitchboard.INDEX_DIST_ALLOW, "true").equals("true");

Loading…
Cancel
Save