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++