Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e00cf81

Browse files
committed
minor update
1 parent e9286dd commit e00cf81

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/utils/crawler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from lib.core.common import clearConsoleLine
1616
from lib.core.common import dataToStdout
17+
from lib.core.common import singleTimeWarnMessage
1718
from lib.core.data import conf
1819
from lib.core.data import kb
1920
from lib.core.data import logger
@@ -99,6 +100,8 @@ def crawlThread():
99100
logger.info("starting crawler")
100101

101102
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.")
102105
threadData.shared.count = 0
103106
threadData.shared.length = len(threadData.shared.unprocessed)
104107
numThreads = min(conf.threads, len(threadData.shared.unprocessed))

0 commit comments

Comments
 (0)