Skip to content

Commit

Permalink
Count till Nth than before Nth (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilipsiva authored and harshavardhana committed May 16, 2016
1 parent d75250b commit 7e9dd67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minio/api.py
Expand Up @@ -391,7 +391,7 @@ def fput_object(self, bucket_name, object_name, file_path,
uploaded_parts[part.part_number] = part

# Always start with first part number.
for part_number in range(1, total_parts_count):
for part_number in range(1, total_parts_count + 1):
# Save the current part size that needs to be uploaded.
current_part_size = part_size
if part_number == total_parts_count:
Expand Down Expand Up @@ -1258,7 +1258,7 @@ def _stream_put_object(self, bucket_name, object_name,
# part_number reaches total_parts_count calculated for the
# given size. Additionally part_manager() also provides
# md5digest and sha256digest for the partitioned data.
for part_number in range(1, total_parts_count):
for part_number in range(1, total_parts_count + 1):
current_part_size = part_size
if part_number == total_parts_count:
current_part_size = last_part_size
Expand Down

0 comments on commit 7e9dd67

Please sign in to comment.