mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-11 04:55:52 +01:00
Correct ETA
This commit is contained in:
parent
0b6b7742c2
commit
e43bc2bb01
@ -300,7 +300,7 @@ def retry(e):
|
||||
if ctx.data_len is None:
|
||||
eta = None
|
||||
else:
|
||||
eta = self.calc_eta(start, time.time(), ctx.data_len - ctx.resume_len, byte_counter - ctx.resume_len)
|
||||
eta = self.calc_eta(ctx.start_time, time.time(), ctx.data_len, byte_counter)
|
||||
|
||||
self._hook_progress({
|
||||
'status': 'downloading',
|
||||
|
Loading…
Reference in New Issue
Block a user