Skip to content

Commit

Permalink
Fix timeout option in Windows ping input sample configuration (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianob85 authored and danielnelson committed Jun 6, 2017
1 parent b2d208b commit 4bfef75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/ping/ping_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const sampleConfig = `
## number of pings to send per collection (ping -n <COUNT>)
count = 4 # required
## Ping timeout, in seconds. 0 means default timeout (ping -w <TIMEOUT>)
Timeout = 0
## Ping timeout, in seconds. 0.0 means default timeout (ping -w <TIMEOUT>)
#timeout = 0.0
`

func (s *Ping) SampleConfig() string {
Expand Down
6 changes: 3 additions & 3 deletions plugins/inputs/ping/ping_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func TestLossyPingGather(t *testing.T) {
"reply_received": 7,
"percent_packet_loss": 22.22222222222222,
"percent_reply_loss": 22.22222222222222,
"average_response_ms": 115,
"minimum_response_ms": 114,
"maximum_response_ms": 119,
"average_response_ms": 115.0,
"minimum_response_ms": 114.0,
"maximum_response_ms": 119.0,
}
acc.AssertContainsTaggedFields(t, "ping", fields, tags)
}
Expand Down

0 comments on commit 4bfef75

Please sign in to comment.