update storage-overview.tsx

This commit is contained in:
MacRimi
2026-04-16 16:42:11 +02:00
parent b7963c3b70
commit 7c8da462db
2 changed files with 34 additions and 49 deletions
+4 -1
View File
@@ -7156,7 +7156,10 @@ def api_smart_run_test(disk_name):
[ -z "$op" ] || [ "$op" -eq 0 ] && break
sleep {sleep_interval}
done
nvme smart-log -o json {device} > {json_path} 2>/dev/null
# Save complete data: smartctl gives device info + health + self-test log in one JSON
smartctl -a --json=c {device} > {json_path} 2>/dev/null
# Fallback to nvme smart-log if smartctl fails
[ ! -s {json_path} ] && nvme smart-log -o json {device} > {json_path} 2>/dev/null
''',
shell=True, start_new_session=True,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL