Update system.py

This commit is contained in:
SpudGunMan
2025-10-09 17:03:39 -07:00
parent 4ceb23bcff
commit 169f9b27a5
+1 -1
View File
@@ -39,7 +39,7 @@ def cleanup_memory():
cmdHistory = cmdHistory[-(MAX_CMD_HISTORY - 50):] # keep the most recent 50 entries
logger.debug(f"System: Trimmed cmdHistory to {len(cmdHistory)} entries")
# Clean up old seenNodes entries (older than 24 hours)
# Clean up old seenNodes entries
if 'seenNodes' in globals():
initial_count = len(seenNodes)
if len(seenNodes) > MAX_SEEN_NODES: