Skip to content

Commit

Permalink
Merge pull request kubernetes#84318 from wawa0210/automated-cherry-pi…
Browse files Browse the repository at this point in the history
…ck-of-#84156-upstream-release-1.15

Automated cherry pick of kubernetes#84156: fix windows performance counter father information failed
  • Loading branch information
k8s-ci-robot authored Nov 9, 2019
2 parents bdf7dad + 35d6f7c commit 7015f71
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/kubelet/winstats/perfcounters.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ func newPerfCounter(counter string) (*perfCounter, error) {
return nil, errors.New("unable to open query through DLL call")
}

ret = win_pdh.PdhValidatePath(counter)
if ret != win_pdh.ERROR_SUCCESS {
return nil, fmt.Errorf("unable to valid path to counter. Error code is %x", ret)
}

ret = win_pdh.PdhAddEnglishCounter(queryHandle, counter, 0, &counterHandle)
if ret != win_pdh.ERROR_SUCCESS {
return nil, fmt.Errorf("unable to add process counter. Error code is %x", ret)
Expand Down

0 comments on commit 7015f71

Please sign in to comment.