From e566d1d8d62f8e3b2cb66eca04cfee5540958589 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 28 Mar 2006 22:54:36 +0000 Subject: [PATCH] some bugfixes regarding new crawling options git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1980 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreate_p.java | 2 +- source/de/anomic/plasma/plasmaCrawlProfile.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/IndexCreate_p.java b/htroot/IndexCreate_p.java index fbb36f7d5..673391066 100644 --- a/htroot/IndexCreate_p.java +++ b/htroot/IndexCreate_p.java @@ -325,7 +325,7 @@ public class IndexCreate_p { prop.put("crawlingIfOlderUnitDayCheck", 0); prop.put("crawlingIfOlderUnitHourCheck", 0); prop.put("crawlingIfOlderUnitMinuteCheck", 0); - if (crawlingIfOlder == -1) { + if ((crawlingIfOlder == -1) || (crawlingIfOlder == Integer.MAX_VALUE)) { prop.put("crawlingIfOlderNumber", 1); prop.put("crawlingIfOlderUnitYearCheck", 1); } else if (crawlingIfOlder >= 60*24*365) { diff --git a/source/de/anomic/plasma/plasmaCrawlProfile.java b/source/de/anomic/plasma/plasmaCrawlProfile.java index 470052bd9..e4e7108f9 100644 --- a/source/de/anomic/plasma/plasmaCrawlProfile.java +++ b/source/de/anomic/plasma/plasmaCrawlProfile.java @@ -421,7 +421,7 @@ public class plasmaCrawlProfile { if (dp == null) { return 0 < max; } else { - return dp.count < max; + return dp.depth < max; } } public boolean grantedDomCount(String domain) {