From 797e273ba7e16f42ff09225ddd17f776e53b050d Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Mon, 27 May 2024 22:19:39 +0200 Subject: [PATCH] Reduce maximum chunk size in athenad.py Updating the maximum chunk size constant in athenad.py to decrease its value from 128KB to 32KB. This change has been made to optimize the handling of log files and data transmission. --- selfdrive/athena/athenad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index aaee9fca3c..5fecb253a8 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -572,7 +572,7 @@ def get_logs_to_send_sorted(log_attr_name=LOG_ATTR_NAME) -> list[str]: def add_log_to_queue(log_path, id): # Define the maximum size of a chunk in bytes - MAX_CHUNK_SIZE = 128 * 1024 # 128KB + MAX_CHUNK_SIZE = 32 * 1024 # 32KB # Open the log file with open(log_path, 'r') as f: