Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhenghan committed Aug 14, 2020
1 parent ad27057 commit 9b1dadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcloud_cos/resumable_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __determine_part_size_internal(self, file_size, part_size):
def __splite_to_parts(self):
parts = []
file_size = int(self.__object_info['Content-Length'])
num_parts = (file_size + self.__part_size - 1) / self.__part_size
num_parts = int((file_size + self.__part_size - 1) / self.__part_size)
for i in range(num_parts):
start = i * self.__part_size
if i == num_parts - 1:
Expand Down

0 comments on commit 9b1dadc

Please sign in to comment.