1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +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
function.
"""
width = get_terminal_size()[0] - 25
width = get_terminal_size()[0] - 35
rel_pos = int(float(pos)/total*width)
bar = ''.join(["=" * rel_pos, "." * (width - rel_pos)])