Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=168#p861
orbiter3cacb3bc956c
diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.javaindex 1d4582ec3..55420564f 100644--- a/htroot/WatchCrawler_p.java+++ b/htroot/WatchCrawler_p.java@@ -357,7 +357,7 @@ public class WatchCrawler_p {// performance settingslong LCbusySleep = Integer.parseInt(env.getConfig(plasmaSwitchboard.CRAWLJOB_LOCAL_CRAWL_BUSYSLEEP, "100"));- int LCppm = (int) (60000L / LCbusySleep);+ int LCppm = (int) (60000L / Math.max(1,LCbusySleep));prop.put("crawlingSpeedMaxChecked", (LCppm >= 1000) ? 1 : 0);prop.put("crawlingSpeedCustChecked", ((LCppm > 10) && (LCppm < 1000)) ? 1 : 0);prop.put("crawlingSpeedMinChecked", (LCppm <= 10) ? 1 : 0);