1
0
Fork 0
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:
Henrik Hautakoski 2025-05-31 17:27:17 +02:00
parent fffed4e4e1
commit 7870fc361a

View file

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