Fix toml struct tag in win_service #4811 (#4936)

This commit is contained in:
Greg
2018-11-05 14:33:02 -07:00
committed by Daniel Nelson
parent 6120c65a5a
commit 74667cd681
2 changed files with 1 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ type Procstat struct {
SystemdUnit string
CGroup string `toml:"cgroup"`
PidTag bool
WinService string `tom:"win_service"`
WinService string `toml:"win_service"`
finder PIDFinder
@@ -281,7 +281,6 @@ func (p *Procstat) updateProcesses(acc telegraf.Accumulator, prevInfo map[PID]Pr
// Create and return PIDGatherer lazily
func (p *Procstat) getPIDFinder() (PIDFinder, error) {
if p.finder == nil {
f, err := p.createPIDFinder()
if err != nil {