mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Fix serial number in rocmCollector
This commit is contained in:
parent
659d0115c0
commit
bef807dd44
@ -139,7 +139,7 @@ func (m *RocmSmiCollector) Init(config json.RawMessage) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if m.config.AddSerialMeta {
|
if m.config.AddSerialMeta {
|
||||||
serial, ret := rocm_smi.DeviceGetSerial(device)
|
serial, ret := rocm_smi.DeviceGetSerialNumber(device)
|
||||||
if ret != rocm_smi.STATUS_SUCCESS {
|
if ret != rocm_smi.STATUS_SUCCESS {
|
||||||
cclog.ComponentError(m.name, "Unable to get serial number for device at index", i, ":", rocm_smi.StatusStringNoError(ret))
|
cclog.ComponentError(m.name, "Unable to get serial number for device at index", i, ":", rocm_smi.StatusStringNoError(ret))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user