microsoft / azure-vhd-utils

Azure VHD utilities.
Other
96 stars 41 forks source link

[Upload Throughput] MBytes used when refering to Mbits #31

Closed carnott-redhat closed 7 years ago

carnott-redhat commented 8 years ago

Currently the vhd utility displays network throughput in MBytes, however the number displayed is in Mbits:

[user@localhost ~]$ vhd upload --localvhdpath <file.vhd> --stgaccountkey <key> --containername <container> --blobname <name>
2016/06/24 00:00:00 Using default parallelism [8*NumCPU] : 8
Computing MD5 Checksum..
 Completed:  99% RemainingTime: 00h:00m:00s Throughput: 1000 MB/sec
Uploading the VHD..
 Completed: 100% [   1000.00 MB] RemainingTime: 00h:00m:00s Throughput: 0 MB/sec     - 
Upload completed

Change to this:

[user@localhost ~]$ vhd upload --localvhdpath <file.vhd> --stgaccountkey <key> --containername <container> --blobname <name>
2016/06/24 00:00:00 Using default parallelism [8*NumCPU] : 8
Computing MD5 Checksum..
 Completed:  99% RemainingTime: 00h:00m:00s Throughput: 1000 MB/sec
Uploading the VHD..
 Completed: 100% [   1000.00 MB] RemainingTime: 00h:00m:00s Throughput: 0 Mb/sec     - 
Upload completed

The same may need to be done for MD5 throughput:

[user@localhost ~]$ vhd upload --localvhdpath <file.vhd> --stgaccountkey <key> --containername <container> --blobname <name>
2016/06/24 00:00:00 Using default parallelism [8*NumCPU] : 8
Computing MD5 Checksum..
 Completed:  99% RemainingTime: 00h:00m:00s Throughput: 1000 Mb/sec
Uploading the VHD..
 Completed: 100% [   1000.00 MB] RemainingTime: 00h:00m:00s Throughput: 0 Mb/sec     - 
Upload completed