agourlay / dlm

Minimal HTTP download manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Speed miscalculation on download resume

chromer030 opened this issue · comments

user@user ~/Desktop % ./dlm -i dlm.txt -M 1 -o /run/media/user/Data/
[2022-02-04 18:26:48] Starting dlm with at most 1 concurrent downloads
[2022-02-04 18:26:48] Found 1 URLs in input file dlm.txt
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0/1
InstallAssistant.pkg        [00:00:11] [##################################>-----] 9.87GiB/11.32GiB (speed:953.67MiB/s) (eta:2s)

And sometimes speed and eta are 0 forever !

Screenshot_20220210_162826

I have noticed those two issues as well 👍

I believe they are caused by issues in the progress bar library indicatif.

A new version of the library which revisits many of its internal parts is about to be released, so I propose to keep this issue open until we can test drive it.

0.2.6 was released with the update to the latest RC from indicatif.

You could give it a try to see if it fixes this issue.

Closing as I have not witnessed this issue in the latest versions.