Commit e3c84fc3 authored by Hermann Krumrey's avatar Hermann Krumrey

Fix formatting issues in progress printer

parent c9c91345
......@@ -145,8 +145,6 @@ class XDCCClient(SimpleIRCClient):
message = ""
try:
self.timeout_watcher_thread.start()
self.progress_printer_thread.start()
self.logger.info("Connecting to " + self.server.address + ":" +
str(self.server.port))
self.connect(
......@@ -156,6 +154,10 @@ class XDCCClient(SimpleIRCClient):
)
self.connected = True
self.connect_start_time = time.time()
self.timeout_watcher_thread.start()
self.progress_printer_thread.start()
self.start()
except AlreadyDownloadedException:
self.logger.error("File already downloaded")
......@@ -557,7 +559,9 @@ class XDCCClient(SimpleIRCClient):
log_message = "[{}]: ({}%) |{}/{}| ({})".format(
self.pack.filename,
percentage,
human_readable_bytes(self.progress),
human_readable_bytes(
self.progress, remove_trailing_zeroes=False
),
human_readable_bytes(self.filesize),
speed
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment