ping/package loss is white if not in warning or crit range
This commit is contained in:
@@ -25,7 +25,7 @@ func formatLine(stats *probing.Statistics) {
|
||||
|
||||
switch {
|
||||
case stats.AvgRtt.Milliseconds() < 50:
|
||||
rttColor = "%{F#3cb703}"
|
||||
rttColor = "%{F-}"
|
||||
case stats.AvgRtt.Milliseconds() < 100:
|
||||
rttColor = "%{F#e87205}"
|
||||
default:
|
||||
@@ -34,7 +34,7 @@ func formatLine(stats *probing.Statistics) {
|
||||
|
||||
switch {
|
||||
case stats.PacketLoss == 0:
|
||||
packetColor = "%{F#3cb703}"
|
||||
packetColor = "%{F-}"
|
||||
case stats.PacketLoss < 10:
|
||||
packetColor = "%{F#f9dd04}"
|
||||
case stats.PacketLoss < 25:
|
||||
|
Reference in New Issue
Block a user