handle when power on smart attribute is a string like 0h+0m+0.000s

This commit is contained in:
henrygd
2025-10-28 13:44:31 -04:00
parent 5122d0341d
commit 9a9a89ee50
3 changed files with 123 additions and 21 deletions

View File

@@ -453,7 +453,7 @@ func (sm *SmartManager) parseSmartForSata(output []byte) (bool, int) {
Value: attr.Value,
Worst: attr.Worst,
Threshold: attr.Thresh,
RawValue: attr.Raw.Value,
RawValue: uint64(attr.Raw.Value),
RawString: attr.Raw.String,
WhenFailed: attr.WhenFailed,
}