Memory Leak in SMART History #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The history retention keeps 30 days of data but _enforce_storage_limit only enforces 10MB total. For a system with 50 drives checking hourly:
50 drives × 24 checks/day × 30 days = 36,000 entries
At ~1KB each = 36MB (exceeds 10MB limit)
This will cause constant file deletion/recreation. Either:
Increase limit to 50MB
Reduce retention to 7 days
Implement per-drive size limits