fix(smart): handle negative ATA device statistics values (#1791)

This commit is contained in:
henrygd
2026-03-08 13:34:16 -04:00
parent 73c262455d
commit 638e7dc12a
3 changed files with 41 additions and 4 deletions

View File

@@ -143,8 +143,8 @@ type AtaDeviceStatisticsPage struct {
}
type AtaDeviceStatisticsEntry struct {
Name string `json:"name"`
Value *uint64 `json:"value,omitempty"`
Name string `json:"name"`
Value *int64 `json:"value,omitempty"`
}
type AtaSmartAttribute struct {