> @@ -70,7 +70,7 @@ public String execute(String container, Blob blob) {
>        while (offset < length) {
>           blockCount++;
>           long chunkSize = MAX_BLOCK_SIZE;
> -         if (blockCount >= totalBlocks) {
> +         if (length - offset < MAX_BLOCK_SIZE) {

LGTM; you /may/ want to just create a variable for "bytesLeft" to make it a bit 
clearer; but should be fine.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/99/files#r5597252

Reply via email to