minor update

This commit is contained in:
Miroslav Stampar 2010-12-26 09:40:40 +00:00
parent 562a6440d1
commit eaf4b93856

View File

@ -33,7 +33,7 @@ def tableExists(tableFile):
infoMsg = "checking table existence using items from '%s'" % tableFile
logger.info(infoMsg)
infoMsg = "adding words used on web page to name check list"
infoMsg = "adding words used on web page to the check list"
logger.info(infoMsg)
pageWords = getPageTextWordsSet(kb.originalPage)
for word in pageWords:
@ -74,6 +74,10 @@ def tableExists(tableFile):
dataToStdout("\r[%s] [INFO] tried: %s" % (time.strftime("%X"), status), True)
iolock.release()
if conf.threads > 1:
debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else ""))
logger.debug(debugMsg)
# Start the threads
for numThread in range(conf.threads):
thread = threading.Thread(target=tableExistsThread, name=str(numThread))
@ -167,6 +171,10 @@ def columnExists(columnFile):
dataToStdout("\r[%s] [INFO] tried: %s" % (time.strftime("%X"), status), True)
iolock.release()
if conf.threads > 1:
debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else ""))
logger.debug(debugMsg)
# Start the threads
for numThread in range(conf.threads):
thread = threading.Thread(target=columnExistsThread, name=str(numThread))