use linux perf tool for amd power usage,

add support for intel DC ssds
This commit is contained in:
alu
2026-08-18 10:16:06 -07:00
parent a474ff2511
commit b66b7cad59
4 changed files with 152 additions and 7 deletions
+2 -3
View File
@@ -414,17 +414,16 @@ func GetDiskSMART(devicePath string) (*DiskSMART, error) {
for _, attr := range smartData.ATAMetrics.Table {
switch attr.ID {
// 245: Intel DC
case 231, 177, 233, 169, 230, 173:
smart.HealthRemaining = attr.Value
smart.WearoutPercent = max(100-attr.Value, 0)
smart.HasWearData = true
case 202:
case 202, 245:
smart.WearoutPercent = attr.Value
smart.HealthRemaining = max(100-attr.Value, 0)
smart.HasWearData = true
}
if smart.HasWearData {
break
}