Skip to content

Commit d6df6a4

Browse files
committed
Fix filsize formatting in download.py
1 parent e2508a7 commit d6df6a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frameioclient/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def download(self, url):
113113

114114
download_time = time.time() - start_time
115115
download_speed = format_bytes(math.ceil(self.file_size/(download_time)))
116-
print("Downloaded {} at {}".format(format_bytes(self.file_size), download_speed))
116+
print("Downloaded {} at {}".format(format_bytes(self.file_size, type="size"), download_speed))
117117

118118
return self.destination, download_speed
119119

@@ -152,7 +152,7 @@ def multi_part_download(self, url):
152152
# Calculate and print stats
153153
download_time = time.time() - start_time
154154
download_speed = format_bytes(math.ceil(self.file_size/(download_time)))
155-
print("Downloaded {} at {}".format(format_bytes(self.file_size), download_speed))
155+
print("Downloaded {} at {}".format(format_bytes(self.file_size, type="size"), download_speed))
156156

157157
return self.destination
158158

0 commit comments

Comments
 (0)