Skip to content

Commit

Permalink
Update aria2_download.py (breakdowns#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
anasty17 authored Jun 13, 2021
1 parent cbec19a commit 1a6b87d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot/helper/mirror_utils/download_utils/aria2_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def __onDownloadStarted(self, api, gid):

if TORRENT_DIRECT_LIMIT is not None:
LOGGER.info(f"Checking File/Folder Size...")
with download_dict_lock:
for down in list(download_dict.values()):
sleep(1)
size = down.size_raw()
sleep(1.5)
size = aria2.get_download(gid).total_length
limit = TORRENT_DIRECT_LIMIT
limit = limit.split(' ', maxsplit=1)
limitint = int(limit[0])
Expand Down

0 comments on commit 1a6b87d

Please sign in to comment.