From 2adf9484a366162b817ffa6588c00fbd9c2bba7f Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Tue, 12 Jul 2022 12:31:24 +0200 Subject: [PATCH] Redo fix for NvidiaCollector and MiG. Got lost somehow --- collectors/nvidiaMetric.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collectors/nvidiaMetric.go b/collectors/nvidiaMetric.go index 458ecd4..0eb7c8a 100644 --- a/collectors/nvidiaMetric.go +++ b/collectors/nvidiaMetric.go @@ -275,7 +275,7 @@ func readUtilization(device NvidiaCollectorDevice, output chan lp.CCMetric) erro err := errors.New(nvml.ErrorString(ret)) return err } - if !isMig { + if isMig { return nil } @@ -620,7 +620,7 @@ func readEncUtilization(device NvidiaCollectorDevice, output chan lp.CCMetric) e err := errors.New(nvml.ErrorString(ret)) return err } - if !isMig { + if isMig { return nil } if !device.excludeMetrics["nv_encoder_util"] { @@ -647,7 +647,7 @@ func readDecUtilization(device NvidiaCollectorDevice, output chan lp.CCMetric) e err := errors.New(nvml.ErrorString(ret)) return err } - if !isMig { + if isMig { return nil } if !device.excludeMetrics["nv_decoder_util"] {