mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-04 23:52:56 +08:00
Floor instead of round in format_percent
This commit is contained in:
parent
eae16eb67b
commit
d30c3806bb
@ -70,7 +70,7 @@ class FileDownloader(object):
|
|||||||
def format_percent(percent):
|
def format_percent(percent):
|
||||||
if percent is None:
|
if percent is None:
|
||||||
return '---.-%'
|
return '---.-%'
|
||||||
return '%6s' % ('%3.1f%%' % percent)
|
return '%3s.%.1s%%' % tuple(str(float(percent)).split('.'))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def calc_eta(start, now, total, current):
|
def calc_eta(start, now, total, current):
|
||||||
|
Loading…
Reference in New Issue
Block a user