mirror of
https://github.com/httpie/cli.git
synced 2025-02-09 13:14:03 +02:00
Fixed download ETA for Python 2.6.
This commit is contained in:
parent
7f624e61b5
commit
5af88756a6
@ -382,7 +382,7 @@ class ProgressReporterThread(threading.Thread):
|
|||||||
s = int((self.status.total_size - downloaded) / speed)
|
s = int((self.status.total_size - downloaded) / speed)
|
||||||
h, s = divmod(s, 60 * 60)
|
h, s = divmod(s, 60 * 60)
|
||||||
m, s = divmod(s, 60)
|
m, s = divmod(s, 60)
|
||||||
eta = '{}:{:0>2}:{:0>2}'.format(h, m, s)
|
eta = '{0}:{1:0>2}:{2:0>2}'.format(h, m, s)
|
||||||
|
|
||||||
self._status_line = PROGRESS.format(
|
self._status_line = PROGRESS.format(
|
||||||
percentage=percentage,
|
percentage=percentage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user