Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detailed information when downloading from Azure blob #115

Closed
AlexBlain opened this issue Nov 5, 2018 · 1 comment
Closed

Detailed information when downloading from Azure blob #115

AlexBlain opened this issue Nov 5, 2018 · 1 comment

Comments

@AlexBlain
Copy link

Currently, we only see the throughput displayed when we download a file from a blob.
If we add the option --output=json, it adds a bit more information but that is not readable from an end user perspective.
We would need to have the size of the file being downloaded, the time remaining, the size remaining, etc.

@zezha-msft
Copy link
Contributor

Hi @AlexBlain, thanks for reaching out!

To clarify, the JSON output is not meant to be read by the end user; it's for applications that spawn AzCopy to easily parse the output.

Could you please clarify what the expected behavior is? Did you mean you wanted to see the throughput in the JSON?

The real time throughput can be easily computed with the fields Timestamp and TotalBytesTransferred. In fact, that's how the throughput was calculated when --output=text: throughput = (current TotalBytesTransferred - previous TotalBytesTransferred)/(current Timestamp - previous Timestamp).

Remaining bytes is equal to TotalBytesEnumerated - TotalBytesTransferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants