Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9286dd commit e00cf81Copy full SHA for e00cf81
1 file changed
lib/utils/crawler.py
@@ -14,6 +14,7 @@
14
15
from lib.core.common import clearConsoleLine
16
from lib.core.common import dataToStdout
17
+from lib.core.common import singleTimeWarnMessage
18
from lib.core.data import conf
19
from lib.core.data import kb
20
from lib.core.data import logger
@@ -99,6 +100,8 @@ def crawlThread():
99
100
logger.info("starting crawler")
101
102
for i in xrange(conf.crawlDepth):
103
+ if i > 0 and conf.threads == 1:
104
+ singleTimeWarnMessage("running in a single-thread mode. This could take a while.")
105
threadData.shared.count = 0
106
threadData.shared.length = len(threadData.shared.unprocessed)
107
numThreads = min(conf.threads, len(threadData.shared.unprocessed))
0 commit comments