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.
This commit is contained in:
DevTekVE
2024-05-27 22:19:39 +02:00
parent 9d79f243ff
commit 797e273ba7
+1 -1
View File
@@ -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: