From 1944445158650f26e389547f8d8db458e450b57c Mon Sep 17 00:00:00 2001 From: poorna Date: Fri, 6 Jul 2018 14:14:17 -0700 Subject: [PATCH] fix: update progress bar with correct size of recently uploaded part --- api-compose-object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-compose-object.go b/api-compose-object.go index 5d3ede70d..4f8d74e8c 100644 --- a/api-compose-object.go +++ b/api-compose-object.go @@ -480,7 +480,7 @@ func (c Client) ComposeObjectWithProgress(dst DestinationInfo, srcs []SourceInfo return err } if progress != nil { - io.CopyN(ioutil.Discard, progress, start+end-1) + io.CopyN(ioutil.Discard, progress, end-start+1) } objParts = append(objParts, complPart) partIndex++