Skip to content

Commit 3c1c18d

Browse files
committed
convert file size to int()
1 parent f4363c2 commit 3c1c18d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergin/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,8 @@ def send_logs(
14371437
)
14381438

14391439
# We send more from the local logs
1440-
global_logs_file_size_to_send = MAX_LOG_FILE_SIZE_TO_SEND * 0.2
1441-
local_logs_file_size_to_send = MAX_LOG_FILE_SIZE_TO_SEND * 0.8
1440+
global_logs_file_size_to_send = int(MAX_LOG_FILE_SIZE_TO_SEND * 0.2)
1441+
local_logs_file_size_to_send = int(MAX_LOG_FILE_SIZE_TO_SEND * 0.8)
14421442

14431443
global_logs = b""
14441444
if global_log_file and os.path.exists(global_log_file):

0 commit comments

Comments
 (0)