From 17d74fc83c10edf057317d394c7fed1ba40919af Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 26 Dec 2010 09:53:40 +0000 Subject: [PATCH] cosmeticado --- lib/techniques/brute/use.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/techniques/brute/use.py b/lib/techniques/brute/use.py index 21310158c..380e43fe7 100644 --- a/lib/techniques/brute/use.py +++ b/lib/techniques/brute/use.py @@ -75,8 +75,11 @@ def tableExists(tableFile): iolock.release() if conf.threads > 1: - debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else "")) + debugMsg = "starting %d threads" % conf.threads logger.debug(debugMsg) + else: + warnMsg = "running in a single-thread mode. this could take a while." + logger.warn(warnMsg) # Start the threads for numThread in range(conf.threads): @@ -172,8 +175,11 @@ def columnExists(columnFile): iolock.release() if conf.threads > 1: - debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else "")) + debugMsg = "starting %d threads" % conf.threads logger.debug(debugMsg) + else: + warnMsg = "running in a single-thread mode. this could take a while." + logger.warn(warnMsg) # Start the threads for numThread in range(conf.threads):