1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

progressbar: make it bit smaller.

this should fix #122
This commit is contained in:
Johan Andersson 2014-08-27 19:29:00 +02:00
parent 9b1d2aa657
commit 1d222eacc3

View File

@ -101,7 +101,7 @@ def progressbar(total, pos, msg=""):
Of course, the ETA part should be supplied be the calling Of course, the ETA part should be supplied be the calling
function. function.
""" """
width = get_terminal_size()[0] - 25 width = get_terminal_size()[0] - 35
rel_pos = int(float(pos)/total*width) rel_pos = int(float(pos)/total*width)
bar = ''.join(["=" * rel_pos, "." * (width - rel_pos)]) bar = ''.join(["=" * rel_pos, "." * (width - rel_pos)])