From bef807dd440701fdf01c8b4b186be3f9c4fc84bd Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Sun, 5 Jun 2022 15:53:39 +0200 Subject: [PATCH] Fix serial number in rocmCollector --- collectors/rocmsmiMetric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/rocmsmiMetric.go b/collectors/rocmsmiMetric.go index f2acfbf..c717a5d 100644 --- a/collectors/rocmsmiMetric.go +++ b/collectors/rocmsmiMetric.go @@ -139,7 +139,7 @@ func (m *RocmSmiCollector) Init(config json.RawMessage) error { } if m.config.AddSerialMeta { - serial, ret := rocm_smi.DeviceGetSerial(device) + serial, ret := rocm_smi.DeviceGetSerialNumber(device) if ret != rocm_smi.STATUS_SUCCESS { cclog.ComponentError(m.name, "Unable to get serial number for device at index", i, ":", rocm_smi.StatusStringNoError(ret)) } else {