1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

progressbar: this should be bit smaller because of fetcher.http

using bytes instead of low number takes more room
This commit is contained in:
Johan Andersson 2016-03-20 00:32:01 +01:00
parent ccc502f4a1
commit aba4d892f8

View File

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