mirror of
https://github.com/pnx/pinger.git
synced 2026-06-16 03:24:54 +02:00
main.go: cleanup signal output by printing a newline at the end.
This commit is contained in:
parent
fffed4e4e1
commit
7870fc361a
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -32,7 +32,7 @@ func eventLoop(pinger *probing.Pinger, ticker *time.Ticker) {
|
||||||
select {
|
select {
|
||||||
// Got signal. stop pinger and exit goroutine
|
// Got signal. stop pinger and exit goroutine
|
||||||
case s := <-sig:
|
case s := <-sig:
|
||||||
fmt.Printf("Recived signal: %s, exiting.", s)
|
fmt.Printf("Recived signal: %s, exiting.\n", s)
|
||||||
return
|
return
|
||||||
// Ticker ticks. print stats.
|
// Ticker ticks. print stats.
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue