修复了bug

This commit is contained in:
RTAkland
2022-02-14 16:45:59 +08:00
committed by GitHub
parent 256cd2e35a
commit 2439498e65
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ class Check:
开始下载 开始下载
:return: :return:
""" """
filesize = int(requests.get(self.assets_url).headers['Content-Length']) filesize = int(self.session.head(self.assets_url).headers['Content-Length'])
threaded_count = 3 threaded_count = 3
print(f'I: 数据库大小: {round(filesize / 1024 / 1024, 2)}Mb. 下载线程: {threaded_count}') print(f'I: 数据库大小: {round(filesize / 1024 / 1024, 2)}Mb. 下载线程: {threaded_count}')
threading.BoundedSemaphore(threaded_count) threading.BoundedSemaphore(threaded_count)