Update server.py
Browse files
server.py
CHANGED
|
@@ -185,7 +185,7 @@ def compress_folder():
|
|
| 185 |
print(f"Data compressed into {file_path}")
|
| 186 |
|
| 187 |
file_size = os.path.getsize(file_path) # 获取压缩包的大小
|
| 188 |
-
print('文件大小:', file_size, '上次文件大小:', last_uploaded_size)
|
| 189 |
|
| 190 |
# 判断是否大于800MB (800MB = 800 * 1024 * 1024 字节)
|
| 191 |
if file_size < (800 * 1024 ** 2):
|
|
|
|
| 185 |
print(f"Data compressed into {file_path}")
|
| 186 |
|
| 187 |
file_size = os.path.getsize(file_path) # 获取压缩包的大小
|
| 188 |
+
print('文件大小:', file_size, '上次文件大小:', last_uploaded_size,file_size * 1024 ** 2)
|
| 189 |
|
| 190 |
# 判断是否大于800MB (800MB = 800 * 1024 * 1024 字节)
|
| 191 |
if file_size < (800 * 1024 ** 2):
|