hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.16k stars 4.43k forks source link

Enhancement Request: Display size of download, not just percentage or speed of download #13174

Open Flimm opened 1 year ago

Flimm commented 1 year ago

After running vagrant up, a box needs to be downloaded:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'folio/release' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'folio/release'
    default: URL: https://vagrantcloud.com/folio/release
==> default: Adding box 'folio/release' (v1.0.0-20230320.7993) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/folio/boxes/release/versions/1.0.0-20230320.7993/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
Download redirected to host: folio-vagrant.s3-accelerate.amazonaws.com
Progress: 0% (Rate: 32768/s, Estimated time remaining: 32:00:04)

The progress line at the end shows me this information:

However, it doesn't display this information:

I would prefer if this information was include, for example by including: (50MiB/102MiB)

My current Internet speed is not stable or reliable, and so it's actually more helpful for me to see how big the download is to get a feel for how long the download will take. Also, in some cases, my Internet bill is proportionate to how much data I download. In this case, it is also helpful to know how big the download is.

Flimm commented 1 year ago

Also, it would be nice if the speed number used clear units. 128k/s is ambiguous. Does it mean 128000 bits per second? Or 128000 bytes per second? Speeds are often advertised in bits per second (with a lowercase b like this: bps), but some tools display speeds in bytes per second (with an uppercase B like this: Bps).

Speeds almost always use powers of 1000, like this: k=1000 and M=1000000 (as opposed to k=1024 and M=1048576).