From 74533358f987749985c053fef2fb6d382118b799 Mon Sep 17 00:00:00 2001 From: Shashwat Hiregoudar Date: Tue, 17 Jun 2025 16:42:08 +0530 Subject: [PATCH] correction Signed-off-by: Shashwat Hiregoudar --- collector/nvme_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/nvme_linux.go b/collector/nvme_linux.go index 5d3c2ac7..7cb90e17 100644 --- a/collector/nvme_linux.go +++ b/collector/nvme_linux.go @@ -115,7 +115,7 @@ func (c *nvmeCollector) Update(ch chan<- prometheus.Metric) error { infoValue := 1.0 devicePath := filepath.Join(*sysPath, "class/nvme", device.Name) - if cntlid, err := readUintFromFile(filepath.Join(devicePath, "cntlid")) + cntlid, err := readUintFromFile(filepath.Join(devicePath, "cntlid")) if err != nil { level.Debug(c.logger).Log("msg", "failed to read cntlid", "device", device.Name, "err", err) }