diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-07-24 09:14:03 +0100 |
---|---|---|
committer | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-07-24 14:59:24 +0100 |
commit | 22cc88f921c6d92c1dd8a69d52af1d257941da4a (patch) | |
tree | 0b9226f4dc45cdd7cd354379565a0c078e6c9d4a /src/virtBootstrap/virt_bootstrap.py | |
parent | 2b9dbe2547935f96b165e7f7d67e1af481bada40 (diff) | |
download | virt-bootstrap.git-22cc88f921c6d92c1dd8a69d52af1d257941da4a.tar.gz virt-bootstrap.git-22cc88f921c6d92c1dd8a69d52af1d257941da4a.tar.xz virt-bootstrap.git-22cc88f921c6d92c1dd8a69d52af1d257941da4a.zip |
DockerSource: Fix formula of download progress
When downloading image with multiple layers, the download progress
value of every following layer should not start from 0.
If we have 10 layers, downloading each of them should increase the
total download progress by 10%.
Assuming that the download and extraction are 50/50 of the total work.
Then, downloading each of 10 layers will increase the progress value
with 5% of the total work.
When all layers are downloaded the progress value should be 50%.
However, with the current formula the progress value of each layer
starts from 0%.
(E.g. when downloading 2nd layer of 10 the download progress starts
from 0% instead of 5%.)
This bug can be seen when downloading images with multiple layers of
large size.
Example:
virt-bootstrap docker://rails /tmp/foo --status-only
Diffstat (limited to 'src/virtBootstrap/virt_bootstrap.py')
0 files changed, 0 insertions, 0 deletions