fix: Adjust memory thresholds for Discord message sending to match device capabilities

This commit is contained in:
2025-11-15 09:46:22 -05:00
parent c6f46e097b
commit 4400fb5a74
2 changed files with 3 additions and 3 deletions

View File

@@ -408,7 +408,7 @@ while True:
_gc.collect()
_gc.collect()
# require a conservative free memory threshold before TLS (adjust to your device)
mem_ok = getattr(_gc, 'mem_free', lambda: 0)() > 140000
mem_ok = getattr(_gc, 'mem_free', lambda: 0)() > 90000
if mem_ok:
try:
ok = discord_webhook.send_discord_message(pending_discord_message)