megatools icon indicating copy to clipboard operation
megatools copied to clipboard

progress numbers are misleading when resuming a large file

Open foresto opened this issue 5 years ago • 0 comments

When downloading a 7GiB file, megadl's progress numbers look correct, and it runs until the server returns 509 (over quota). Then, when resuming the same file, megadl's progress reports start at 0.03% and 817.5 KiB instead of the expected 65.37% and 5.0 GiB. This gives the false impression that it has not resumed. I almost canceled the download and gave up when I saw this.

Further investigation shows that megadl tries to display a hint that a resume is in progress, by printing "of 2.6..." after the byte count in each progress report. (I guess that 2.6 is probably the number of GB remaining after the first 5GB were downloaded.) Unfortunately, that text is not visible in a standard 80 column terminal window with file names of moderate length.

Perhaps the progress output could be revised to make clear what is actually happening? Even just a single line announcing the start of the resume task (along with how much data was previously downloaded and how much remains) would be helpful here.

(tested with megadl 1.10.2 from the ubuntu repo)

foresto avatar Jan 07 '20 02:01 foresto