Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed Oct 23, 2023
1 parent 4334319 commit 8b3420e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inputs/procstat/procstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func UserFilter(username string) Filter {
}
}

func ExeFilter(reg *regexp.Regexp) Filter {
func ExecFilter(reg *regexp.Regexp) Filter {
return func(p *process.Process) bool {
if e, _ := p.Exe(); reg.MatchString(e) {
return true
Expand Down Expand Up @@ -145,7 +145,7 @@ func (ins *Instance) Gather(slist *types.SampleList) {
opts = append(opts, UserFilter(ins.SearchUser))
}
if ins.searchExecRegexp != nil {
opts = append(opts, ExeFilter(ins.searchExecRegexp))
opts = append(opts, ExecFilter(ins.searchExecRegexp))
}
if ins.searchCmdLineRegexp != nil {
opts = append(opts, CmdLineFilter(ins.searchCmdLineRegexp))
Expand Down

0 comments on commit 8b3420e

Please sign in to comment.