Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusAfinovicz committed Nov 15, 2023
1 parent f95b3a4 commit 740675c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/linuxkit/push_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func pushAWSCmd() *cobra.Command {

log.Infof("Will attempt upload in %d number of parts to %s", numUploads, *aws.String(dst))

for partNumber := 0; partNumber <= numUploads; partNumber++ {
for partNumber := 0; partNumber < numUploads; partNumber++ {
// Calculate the byte range for this part
start := int64(partNumber) * multipartUploadPartSize
end := int64(math.Min(float64(start+multipartUploadPartSize), float64(fileSize)))
Expand Down

0 comments on commit 740675c

Please sign in to comment.