Skip to content

Commit

Permalink
Fix toml struct tag in win_service #4811 (#4936)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and danielnelson committed Nov 5, 2018
1 parent 6120c65 commit 74667cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/inputs/procstat/procstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion plugins/inputs/procstat/win_service_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func getService(name string) (*mgr.Service, error) {
}

func queryPidWithWinServiceName(winServiceName string) (uint32, error) {

srv, err := getService(winServiceName)
if err != nil {
return 0, err
Expand Down

0 comments on commit 74667cd

Please sign in to comment.