Hardcoded Magic Numbers #20
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?
Many thresholds are hardcoded:
if is_new_drive and wear_attr.get('ignore_on_new_drive', False):
logger.debug(f"Skipping Wear_Leveling_Count evaluation for new drive: {raw_value}")
The definition of "new drive" (720 hours = 30 days) is in a different method. Centralize:
CONFIG = {
# ... existing ...
'NEW_DRIVE_HOURS_THRESHOLD': 720, # 30 days
'SMART_ERROR_RECENT_HOURS': 168, # 1 week
# ...
}