Skip to content

Commit b1e1e50

Browse files
WZH8898srebhan
authored andcommitted
Update plugins/inputs/ping/sample.conf
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
1 parent b6e9e91 commit b1e1e50

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugins/inputs/ping/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ plugin ordering. See [CONFIGURATION.md][CONFIGURATION.md] for more details.
4545
# ping_interval = 1.0
4646

4747
## If set, the time to wait for a ping response in seconds. Operates like
48-
## the "-W" option of the ping command. This setting is used by the "exec"
49-
## method only.
48+
## the "-W" option of the ping command (for "exec" method only)
5049
# timeout = 1.0
5150

52-
## If set, the total ping deadline, in seconds. Operates like the "-w"
51+
## If set, the total ping deadline, in seconds. Operates like the "-w"
5352
## option of the ping command. Use this option to control timeout behavior
5453
## when using the "native" method.
5554
# deadline = 10

plugins/inputs/ping/ping.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func (p *Ping) nativePing(destination string) (*pingStats, error) {
164164

165165
pinger.Source = p.sourceAddress
166166
pinger.Interval = p.calcInterval
167+
167168
if p.Deadline > 0 {
168169
pinger.Timeout = time.Duration(p.Deadline) * time.Second
169170
}

plugins/inputs/ping/sample.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
## the "-W" option of the ping command (for "exec" method only)
2525
# timeout = 1.0
2626

27-
## If set, the total ping deadline, in seconds. Operates like the "-w"
27+
## If set, the total ping deadline, in seconds. Operates like the "-w"
2828
## option of the ping command. Use this option to control timeout behavior
2929
## when using the "native" method.
3030
# deadline = 10

0 commit comments

Comments
 (0)