mirror of
https://github.com/SlavikMIPT/tgcloud.git
synced 2025-03-09 15:40:14 +00:00
stable
This commit is contained in:
parent
2189ee8ff4
commit
c53f93ce0d
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class TelegramClientX(TelegramClient):
|
|||
file_size, part_count, part_size)
|
||||
|
||||
with open(file, 'rb') if isinstance(file, str) else BytesIO(file) as stream:
|
||||
threads_count = 2 + int((self._upload_threads_count - 2) * float(file_size) / 1024 * 1024 * 768)
|
||||
threads_count = 2 + int((self._upload_threads_count - 2) * float(file_size) / (1024 * 1024 * 389))
|
||||
threads_count = min(threads_count, self._upload_threads_count)
|
||||
threads_count = min(part_count, threads_count)
|
||||
upload_thread = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue