Skip to content

Commit

Permalink
fix(go.d/nvidia_smi): disable loop mode on Win (netdata#19040)
Browse files Browse the repository at this point in the history
fix(go.d/nvidia_smi): disable loop mode by default on Win
  • Loading branch information
ilyam8 authored Nov 19, 2024
1 parent e474f06 commit 5647f9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/go/plugin/go.d/modules/nvidia_smi/nvidia_smi.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (nv *NvidiaSmi) Configuration() any {

func (nv *NvidiaSmi) Init() error {
if nv.exec == nil {
if runtime.GOOS == "windows" && nv.LoopMode {
nv.LoopMode = false
}
smi, err := nv.initNvidiaSmiExec()
if err != nil {
return err
Expand Down

0 comments on commit 5647f9f

Please sign in to comment.