Skip to content

Commit 994ffd7

Browse files
jsfakianeriknordmark
authored andcommitted
Fixed issue with threshold column in SMART Attributes
- Added line to include threshold values when we submit the hardware info for storage devices to the cloud Signed-off-by: Ioannis Sfakianakis <[email protected]>
1 parent 58ce32e commit 994ffd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/pillar/cmd/zedagent/hardwareinfo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func getSmartAttr(diskData []*types.DAttrTable) []*info.SmartAttr {
136136
Id: uint32(attr.ID),
137137
AttributeName: attr.AttributeName,
138138
RawValue: uint64(attr.RawValue),
139+
Thresh: uint64(attr.Threshold),
139140
Worst: uint64(attr.Worst),
140141
Value: uint64(attr.Value),
141142
Type: attr.Type,

0 commit comments

Comments
 (0)