Skip to content

Commit

Permalink
Fix data race in input plugin ping_windows
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Jul 6, 2020
1 parent eb06e02 commit c116f0d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/inputs/ping/ping_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import (
)

func (p *Ping) pingToURL(u string, acc telegraf.Accumulator) {
if p.Count < 1 {
p.Count = 1
}

tags := map[string]string{"url": u}
fields := map[string]interface{}{"result_code": 0}

Expand Down

0 comments on commit c116f0d

Please sign in to comment.