From e00cf81f7e5c44066d6945a984039ee2749914ee Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 24 Jun 2011 19:50:13 +0000 Subject: [PATCH] minor update --- lib/utils/crawler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index 8876e3c0b..caf54ae20 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -14,6 +14,7 @@ import time from lib.core.common import clearConsoleLine from lib.core.common import dataToStdout +from lib.core.common import singleTimeWarnMessage from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger @@ -99,6 +100,8 @@ class Crawler: logger.info("starting crawler") for i in xrange(conf.crawlDepth): + if i > 0 and conf.threads == 1: + singleTimeWarnMessage("running in a single-thread mode. This could take a while.") threadData.shared.count = 0 threadData.shared.length = len(threadData.shared.unprocessed) numThreads = min(conf.threads, len(threadData.shared.unprocessed))