From 3cacb3bc956c4db1e6c24eba70fa242357a2079d Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 16 Jul 2007 14:11:34 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=168#p861 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3981 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/WatchCrawler_p.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.java index 1d4582ec3..55420564f 100644 --- a/htroot/WatchCrawler_p.java +++ b/htroot/WatchCrawler_p.java @@ -357,7 +357,7 @@ public class WatchCrawler_p { // performance settings long 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);