Skip to content

Commit

Permalink
Fix incorrect results in ping plugin
Browse files Browse the repository at this point in the history
In the last change, sending to a channel was overlooked, causing all
ping errors and packet sent count to be ignored.
  • Loading branch information
glinton committed Oct 25, 2019
1 parent 9efc376 commit 25a212c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/inputs/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,12 @@ func (p *Ping) pingToURLNative(destination string, acc telegraf.Accumulator) {
if strings.Contains(err.Error(), "not permitted") {
sent.sent = false
}
sents <- sent
return
}

resps <- resp
sents <- sent
}(i + 1)
}
}
Expand Down

0 comments on commit 25a212c

Please sign in to comment.