Fix timeout option in Windows ping input sample configuration (#2885)
This commit is contained in:
parent
b2d208bb0d
commit
4bfef75fdb
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue