cneira / zcage

illumos zone manager
Mozilla Public License 2.0
38 stars 5 forks source link

BUGFIX: Progress was displaying too many digits #17

Closed gjnoonan closed 5 years ago

gjnoonan commented 5 years ago

When downloading images, the progress output was displaying far too many digits. Such as below

 $ zcage pull --image <image-id> --provider=joyent
 Downloading image 63d6e664-3f1f-11e8-aef6-a3120cf8dd9d
 2.2492796192092466% |  3313912  bytes out of 147332149 bytes.


This commit will fix that, and now display to 2 decimal places.

 $ zcage pull --image <image-id> --provider=joyent
 Downloading image 63d6e664-3f1f-11e8-aef6-a3120cf8dd9d
 2.39% |  3522184  bytes out of 147332149 bytes.
cneira commented 5 years ago

Thank you very much @gjnoonan!