diff --git a/humblebundle_downloader/download_library.py b/humblebundle_downloader/download_library.py index 4110f29..76a4949 100644 --- a/humblebundle_downloader/download_library.py +++ b/humblebundle_downloader/download_library.py @@ -403,8 +403,8 @@ def _download_file(self, product_r, local_filename): pb_width = 50 done = int(pb_width * dl / total_length) if self.progress_bar: - print("\t{percent}% [{filler}{space}]" - .format(percent=int(done * (100 / pb_width)), + print("\t{percent:3d}% [{filler}{space}]" + .format(percent=done * 100 // pb_width, filler='=' * done, space=' ' * (pb_width - done), ), end='\r')