Skip to content

Commit 44a3704

Browse files
committed
Revert "Fix num_parts calculation, close #10"
This reverts commit 78e9330.
1 parent 78e9330 commit 44a3704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3-mp-upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def main(src, dest, num_processes=2, split=50, force=False, reduced_redundancy=F
9393
part_size = max(5*1024*1024, 1024*1024*split)
9494
src.seek(0,2)
9595
size = src.tell()
96-
num_parts = int(ceil(1.0 * size / part_size))
96+
num_parts = int(ceil(size / part_size))
9797

9898
# If file is less than 5M, just upload it directly
9999
if size < 5*1024*1024:

0 commit comments

Comments
 (0)