mirror of
https://github.com/pnx/pinger.git
synced 2026-06-16 03:24:54 +02:00
main.go: set printStatus as OnFinish callback to pinger.
This commit is contained in:
parent
57a969561e
commit
fffed4e4e1
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
|
@ -78,6 +78,7 @@ func main() {
|
|||
pinger.Source = *source
|
||||
pinger.Count = *count
|
||||
pinger.RecordRtts = *record_rtt
|
||||
pinger.OnFinish = printStats
|
||||
if timeout != nil && *timeout > 0 {
|
||||
pinger.Timeout = *timeout
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue