show dom counter only for active crawls where the dom counter is enabled within the crawl profile

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7731 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent e3ee43e6ed
commit 3ec94d87c4

@ -244,6 +244,7 @@ public class CrawlProfileEditor_p {
// start contrib [MN]
int i = 0;
if (active && profile.domMaxPages() > 0 && profile.domMaxPages() != Integer.MAX_VALUE) {
String item;
while (i <= domlistlength && !"".equals(item = crawlStacker.domName(true, i))){
if (i == domlistlength) {
@ -252,7 +253,8 @@ public class CrawlProfileEditor_p {
prop.putHTML(CRAWL_PROFILE_PREFIX + count + "_crawlingDomFilterContent_" + i + "_item", item);
i++;
}
}
prop.put(CRAWL_PROFILE_PREFIX+count+"_crawlingDomFilterContent", i);
prop.put(CRAWL_PROFILE_PREFIX + count + "_crawlingDomMaxPages", (profile.domMaxPages() == Integer.MAX_VALUE) ? "unlimited" : Integer.toString(profile.domMaxPages()));

Loading…
Cancel
Save