mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Cast file_total_parts to int
For some reason pycharm is thinking math.ceil() is returning a float
This commit is contained in:
parent
83dc5f7a03
commit
0ffad5d18e
1 changed files with 1 additions and 1 deletions
|
|
@ -2603,7 +2603,7 @@ class Client:
|
|||
progress: callable = None):
|
||||
part_size = 512 * 1024
|
||||
file_size = os.path.getsize(path)
|
||||
file_total_parts = math.ceil(file_size / part_size)
|
||||
file_total_parts = int(math.ceil(file_size / part_size))
|
||||
is_big = True if file_size > 10 * 1024 * 1024 else False
|
||||
is_missing_part = True if file_id is not None else False
|
||||
file_id = file_id or self.rnd_id()
|
||||
|
|
|
|||
Loading…
Reference in a new issue