[downloader] Fix baa6c5e: show ETA of http download as ETA instead of total d/l time
This commit is contained in:
@@ -294,7 +294,7 @@ class HttpFD(FileDownloader):
|
||||
|
||||
# Progress message
|
||||
speed = self.calc_speed(start, now, byte_counter - ctx.resume_len)
|
||||
eta = self.calc_eta(speed, ctx.data_len and (ctx.data_len - ctx.resume_len))
|
||||
eta = self.calc_eta(speed, ctx.data_len and (ctx.data_len - byte_counter))
|
||||
|
||||
self._hook_progress({
|
||||
'status': 'downloading',
|
||||
|
||||
Reference in New Issue
Block a user