Skip to content

Commit

Permalink
Fixed bug that you cannot gather data on non english systems (#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Da1den authored and sparrc committed Dec 13, 2016
1 parent 8e3fbaa commit 17fa6f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/inputs/win_perf_counters/win_perf_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ func (m *Win_PerfCounters) AddItem(metrics *itemList, query string, objectName s
var handle win.PDH_HQUERY
var counterHandle win.PDH_HCOUNTER
ret := win.PdhOpenQuery(0, 0, &handle)
if m.PreVistaSupport {
ret = win.PdhAddCounter(handle, query, 0, &counterHandle)
} else {
ret = win.PdhAddEnglishCounter(handle, query, 0, &counterHandle)
}
ret = win.PdhAddCounter(handle, query, 0, &counterHandle)
_ = ret

temp := &item{query, objectName, counter, instance, measurement,
Expand Down

0 comments on commit 17fa6f9

Please sign in to comment.