Updated temp sensors for nvmes

This commit is contained in:
2025-03-03 20:06:06 -05:00
parent ac71e15942
commit 8845b1c8cb

View File

@ -670,6 +670,9 @@ class SystemHealthMonitor:
Parse SMART values handling different formats Parse SMART values handling different formats
""" """
try: try:
# Handle temperature values with °C
if isinstance(raw_value, str) and '°C' in raw_value:
return int(raw_value.replace('°C', ''))
# Handle time format (e.g., '15589h+17m+33.939s') # Handle time format (e.g., '15589h+17m+33.939s')
if 'h+' in raw_value: if 'h+' in raw_value:
return int(raw_value.split('h+')[0]) return int(raw_value.split('h+')[0])