Fix timeout option in Windows ping input sample configuration (#2885)

This commit is contained in:
Mariusz Brzeski 2017-06-06 20:55:01 +02:00 committed by Daniel Nelson
parent f9462d4fff
commit 56a7ffe0e4
2 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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)
}