Fix win_perf_counters tests (#3068)

This commit is contained in:
Jeff Ashton
2017-07-31 14:03:26 -04:00
committed by Daniel Nelson
parent 26ca13849d
commit cb56269c8b
3 changed files with 77 additions and 64 deletions

View File

@@ -173,6 +173,10 @@ func (m *Win_PerfCounters) ParseConfig() error {
}
}
func (m *Win_PerfCounters) GetParsedItemsForTesting() []*item {
return m.itemCache
}
func (m *Win_PerfCounters) Gather(acc telegraf.Accumulator) error {
// Parse the config once
if !m.configParsed {