[mod] changed data representation of 100% packet loss and service not known
- no need to display ping for 100% loss - use ping=-100 to show service not known error - -1 to hard to differentiate from low pings if limit is > 200
This commit is contained in:
@@ -83,12 +83,15 @@ function ping_server()
|
||||
|
||||
# Name or service not known
|
||||
if [ "${#packet_loss}" -eq 0 ]; then
|
||||
packet_loss="-1"
|
||||
# make this Error visually apparent in the plot
|
||||
packet_loss="100%"
|
||||
satistic="-100,-100,-100,-100"
|
||||
fi
|
||||
|
||||
# 100% package loss
|
||||
if [ "${#satistic}" -eq 0 ]; then
|
||||
satistic="-1,-1,-1,-1"
|
||||
# don't need to plot this data as package loss is displayed
|
||||
satistic="NaN,NaN,NaN,NaN"
|
||||
fi
|
||||
|
||||
echo "$(date $DATE_FORMAT),$server,$packet_loss,$satistic"
|
||||
|
||||
Reference in New Issue
Block a user