fix(agent): SKIP_GPU excludes GPU hwmon from temperatures and fans (#2313)

This commit is contained in:
Miłosz Kolber
2026-09-24 19:59:52 +02:00
committed by GitHub
parent c21412f45d
commit 6141b15f03
7 changed files with 336 additions and 8 deletions

View File

@@ -252,7 +252,11 @@ func (a *Agent) gatherStats(options common.DataRequestOptions) *system.CombinedD
// Start initializes and starts the agent with optional WebSocket connection
func (a *Agent) Start(serverOptions ServerOptions) error {
a.keys = serverOptions.Keys
return a.connectionManager.Start(serverOptions)
err := a.connectionManager.Start(serverOptions)
if err != nil {
a.cleanupSensorShadow()
}
return err
}
func (a *Agent) getFingerprint() string {