minor output fix

This commit is contained in:
Miroslav Stampar 2012-02-12 19:11:54 +00:00
parent 48583a9b8d
commit 8a2bd3897d
2 changed files with 5 additions and 2 deletions

View File

@ -435,6 +435,9 @@ Antonio Riva <antonio.riva@gmail.com>
Ethan Robish <ethan.robish@gmail.com>
for reporting a bug
Levente Rog <levidos@gmail.com>
for reporting a minor bug
Andrea Rossi <andyroyalbattle@yahoo.it>
for reporting a minor bug
for suggesting a feature

View File

@ -319,12 +319,12 @@ def unionUse(expression, unpack=True, dump=False):
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
if conf.verbose == 1:
status = "[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join(map(lambda x: "\"%s\"" % x, items))))
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join(map(lambda x: "\"%s\"" % x, items))))
if len(status) > width:
status = "%s..." % status[:width - 3]
dataToStdout(status, True)
dataToStdout("%s\r\n" % status, True)
runThreads(numThreads, unionThread)