Skip to content

Commit

Permalink
Merge branch 'windows-terminal' of https://github.com/ayanamist/you-get
Browse files Browse the repository at this point in the history
… into ayanamist-windows-terminal
  • Loading branch information
soimort committed Nov 17, 2017
2 parents 57ef139 + 6c9c15e commit ea90279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def __init__(self, total_size, total_pieces = 1):
# 38 is the size of all statically known size in self.bar
total_str = '%5s' % round(self.total_size / 1048576, 1)
total_str_width = max(len(total_str), 5)
self.bar_size = self.term_size - 27 - 2*total_pieces_len - 2*total_str_width
self.bar_size = self.term_size - 28 - 2*total_pieces_len - 2*total_str_width
self.bar = '{:>4}%% ({:>%s}/%sMB) ├{:─<%s}┤[{:>%s}/{:>%s}] {}' % (
total_str_width, total_str, self.bar_size, total_pieces_len, total_pieces_len)

Expand Down

0 comments on commit ea90279

Please sign in to comment.