mirror of
https://github.com/httpie/cli.git
synced 2025-01-17 02:58:32 +01: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)
|
||||
h, s = divmod(s, 60 * 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(
|
||||
percentage=percentage,
|
||||
|
Loading…
Reference in New Issue
Block a user