started on framework for running recurring checks

This commit is contained in:
2021-01-28 20:14:16 -09:00
parent 081ecb0607
commit dbd74982ff
5 changed files with 82 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func (c *CheckPing) Check(debuglvl int) error {
}
}
if debuglvl > 0 {
if debuglvl > 1 {
fmt.Printf("Packet loss: %.f%%\n", stats.PacketLoss)
fmt.Printf("Max RTT: %s\n", stats.MaxRtt.String())
fmt.Printf("Max Configured RTT: %s\n", c.MaxRTT.String())