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
# ...
}
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
# ...
}