Skip to content

Commit

Permalink
fix: unused gpu option (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Nov 26, 2024
1 parent bc31032 commit ebbe344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ func GetState(skipConnectionCount bool, skipProcsCount bool) *model.HostState {
ret.Temperatures = temperatureStat
}

ret.GPU = tryStat(context.Background(), GPU, gpu.GetState)
if agentConfig.GPU {
ret.GPU = tryStat(context.Background(), GPU, gpu.GetState)
}

ret.NetInTransfer, ret.NetOutTransfer = netInTransfer, netOutTransfer
ret.NetInSpeed, ret.NetOutSpeed = netInSpeed, netOutSpeed
Expand Down

0 comments on commit ebbe344

Please sign in to comment.