mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-22 20:08:45 +03:00
Correct ETA
This commit is contained in:
@@ -300,7 +300,7 @@ class HttpFD(FileDownloader):
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user