use linux perf tool for amd power usage,
add support for intel DC ssds
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user