Skip to content
Permalink
Browse files

Merge pull request #84318 from wawa0210/automated-cherry-pick-of-#841…

…56-upstream-release-1.15

Automated cherry pick of #84156: fix windows performance counter father information failed
  • Loading branch information
k8s-ci-robot committed Nov 9, 2019
2 parents bdf7dad + 35d6f7c commit 7015f71e75f670eb9e7ebd4b5749639d42e20079
Showing with 0 additions and 5 deletions.
  1. +0 −5 pkg/kubelet/winstats/perfcounters.go
@@ -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)

0 comments on commit 7015f71

Please sign in to comment.
You can’t perform that action at this time.