Fix typos in comments (#3415)
This commit is contained in:
committed by
Daniel Nelson
parent
63842d48fd
commit
5f215c22fe
@@ -175,7 +175,7 @@ func (p *Ping) Gather(acc telegraf.Accumulator) error {
|
||||
totalTimeout := p.timeout() * float64(p.Count)
|
||||
out, err := p.pingHost(totalTimeout, args...)
|
||||
// ping host return exitcode != 0 also when there was no response from host
|
||||
// but command was execute succesfully
|
||||
// but command was execute successfully
|
||||
if err != nil {
|
||||
// Combine go err + stderr output
|
||||
pendingError = errors.New(strings.TrimSpace(out) + ", " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user