mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-04 08:37:32 +01:00
Correct ETA
This commit is contained in:
parent
0b6b7742c2
commit
e43bc2bb01
@ -300,7 +300,7 @@ class HttpFD(FileDownloader):
|
|||||||
if ctx.data_len is None:
|
if ctx.data_len is None:
|
||||||
eta = None
|
eta = None
|
||||||
else:
|
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({
|
self._hook_progress({
|
||||||
'status': 'downloading',
|
'status': 'downloading',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user