axel icon indicating copy to clipboard operation
axel copied to clipboard

Show current download size in the progress indicator

Open pravi opened this issue 4 years ago • 3 comments

Even though the server does not specify the file size and percentage cannot be shown, how much we downloaded already can be helpful when we roughly know the size.

$ axel https://gitlab.com/gitlab-org/gitlab-foss/-/archive/v12.8.8/gitlab-foss-v12.8.8.tar.gz
Initializing download: https://gitlab.com/gitlab-org/gitlab-foss/-/archive/v12.8.8/gitlab-foss-v12.8.8.tar.gz
File size: unavailable
Opening output file gitlab-foss-v12.8.8.tar.gz.1
Server unsupported, starting from scratch with one connection.
Starting download
[ N/A] [......................................................] [   6.9KB/s]
$ wget -c https://gitlab.com/gitlab-org/gitlab-foss/-/archive/v12.8.8/gitlab-foss-v12.8.8.tar.gz
--2020-03-28 12:21:07--  https://gitlab.com/gitlab-org/gitlab-foss/-/archive/v12.8.8/gitlab-foss-v12.8.8.tar.gz
Resolving gitlab.com (gitlab.com)... 35.231.145.151
Connecting to gitlab.com (gitlab.com)|35.231.145.151|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘gitlab-foss-v12.8.8.tar.gz’

gitlab-foss-v12.8.8.     [  <=>                  ]   6.27M  7.95KB/s    in 12m 59s

pravi avatar Mar 28 '20 07:03 pravi

Could you elaborate? You want to show the size on the progress bar or just the initial size?

ismaell avatar Mar 28 '20 17:03 ismaell

@ismaell size on the progress bar. If you see the wget example, it has 3 numbers 1. How much we already downloaded (size of downloaded file) 2. Current download speed 3. And how long are we downloading it (time since download started). With Axel only one number ie, speed is shown.

pravi avatar Mar 28 '20 23:03 pravi

6.27M 7.95KB/s in 12m 59s in wget vs [ 6.9KB/s] in axel

pravi avatar Mar 28 '20 23:03 pravi