temperatures in the summary output

This commit is contained in:
2025-03-03 20:37:06 -05:00
parent bc62e215ee
commit 8186aa45dd

View File

@ -117,7 +117,8 @@ class SystemHealthMonitor:
logger.info("=== Detailed Health Check Results ===") logger.info("=== Detailed Health Check Results ===")
logger.info(f"Drive Health Status: {health_report['drives_health']['overall_status']}") logger.info(f"Drive Health Status: {health_report['drives_health']['overall_status']}")
for drive in health_report['drives_health']['drives']: for drive in health_report['drives_health']['drives']:
logger.info(f"Drive {drive['mountpoint']}: {drive['usage_percent']}% used, SMART: {drive['smart_status']}") temp_str = f", Temp: {drive.get('temperature')}°C" if drive.get('temperature') else ""
logger.info(f"Drive {drive['device']}{temp_str}: {drive.get('usage_percent', 0)}% used, SMART: {drive['smart_status']}")
logger.info(f"Memory Status: {health_report['memory_health']['status']}") logger.info(f"Memory Status: {health_report['memory_health']['status']}")
logger.info(f"Memory Usage: {health_report['memory_health']['memory_percent']}%") logger.info(f"Memory Usage: {health_report['memory_health']['memory_percent']}%")