diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
commit | 87d772a7d708fec12f48cd8adc0dedff6e1025da (patch) | |
tree | 1fee344c64cc3f43074a01981e21126c8482a522 /src/go/collectors/go.d.plugin/modules/nvidia_smi/init.go | |
parent | Adding upstream version 1.46.3. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/go/plugin/go.d/modules/nvidia_smi/init.go (renamed from src/go/collectors/go.d.plugin/modules/nvidia_smi/init.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/nvidia_smi/init.go b/src/go/plugin/go.d/modules/nvidia_smi/init.go index d8a815bb4..c13b2fffd 100644 --- a/src/go/collectors/go.d.plugin/modules/nvidia_smi/init.go +++ b/src/go/plugin/go.d/modules/nvidia_smi/init.go @@ -8,7 +8,7 @@ import ( "os/exec" ) -func (nv *NvidiaSMI) initNvidiaSMIExec() (nvidiaSMI, error) { +func (nv *NvidiaSmi) initNvidiaSmiExec() (nvidiaSmiBinary, error) { binPath := nv.BinaryPath if _, err := os.Stat(binPath); os.IsNotExist(err) { path, err := exec.LookPath(nv.binName) @@ -18,5 +18,5 @@ func (nv *NvidiaSMI) initNvidiaSMIExec() (nvidiaSMI, error) { binPath = path } - return newNvidiaSMIExec(binPath, nv.Config, nv.Logger) + return newNvidiaSmiBinary(binPath, nv.Config, nv.Logger) } |