Skip to content

Commit aad7bea

Browse files
committed
update size by 50%
1 parent 9a8b692 commit aad7bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pbm/storage/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func (s *S3) Save(name string, data io.Reader, sizeb int64) error {
361361
partSize = int64(s.opts.UploadPartSize)
362362
}
363363
if sizeb > 0 {
364-
ps := sizeb / int64(s.opts.MaxUploadParts) * 11 / 10 // add 10% just in case
364+
ps := sizeb / int64(s.opts.MaxUploadParts) * 15 / 10 // add 50% just in case
365365
if ps > partSize {
366366
partSize = ps
367367
}

0 commit comments

Comments
 (0)