mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-21 04:06:36 +00:00
process: Use registry collector for V1 data (#1814)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -57,13 +57,13 @@ func (s *ScheduleService) Connect() error {
|
||||
return err
|
||||
}
|
||||
|
||||
s.taskServiceObj = s.taskSchedulerObj.MustQueryInterface(ole.IID_IDispatch)
|
||||
|
||||
s.taskService, err = oleutil.CallMethod(s.taskServiceObj, "Connect")
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to connect to task service: %w", err)
|
||||
}
|
||||
|
||||
s.taskServiceObj = s.taskSchedulerObj.MustQueryInterface(ole.IID_IDispatch)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user