added fallthrough so critical conditions get evaluated
This commit is contained in:
@@ -69,6 +69,7 @@ func formatLineWaybar(stats *probing.Statistics) {
|
||||
switch {
|
||||
case int(math.Round(stats.PacketLoss)) >= *PacketLossWarnLimit || int(stats.AvgRtt.Milliseconds()) >= *PingWarningLimit:
|
||||
res.Class = "warning"
|
||||
fallthrough
|
||||
case int(math.Round(stats.PacketLoss)) >= *PacketLossCritLimit || int(stats.AvgRtt.Milliseconds()) >= *PingCritLimit:
|
||||
res.Class = "critical"
|
||||
}
|
||||
|
Reference in New Issue
Block a user