Skip to content

Commit 3464640

Browse files
committed
little bugfix
1 parent 8d63669 commit 3464640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httpscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def write_func(self, worker_id, url, response, exception):
240240
# TODO: add detailed stats
241241

242242
# Generate and print colored output
243-
out = '[%s] [worker:%s] [%s]\t%s -> %i' % (strnow(), worker_id, percentage, parsed['url'], parsed['status'])
243+
out = '[%s] [worker:%02i] [%s]\t%s -> %i' % (strnow(), worker_id, percentage, parsed['url'], parsed['status'])
244244
if exception is not None:
245245
out += '(%s)' % str(exception)
246246
if parsed['status'] == 200:
@@ -252,7 +252,7 @@ def write_func(self, worker_id, url, response, exception):
252252

253253
# Write to log file
254254
if self.logger is not None:
255-
out = '[worker:%s] %s %s %i' % (worker_id, url, parsed['status'], parsed['length'])
255+
out = '[worker:%02i] %s %s %i' % (worker_id, url, parsed['status'], parsed['length'])
256256
if exception is None:
257257
self.logger.info(out)
258258
else:

0 commit comments

Comments
 (0)