4
0
mirror of https://github.com/darkclip/netlist.git synced 2026-11-11 01:14:12 +08:00
This commit is contained in:
darkclip 2023-08-03 01:12:50 +08:00
parent 27f44c8e72
commit be751328fc

View File

@ -8,7 +8,7 @@ get_rnd(){
get_ping_loss(){
loss_percent=$(ping -c 5 -q $1 | awk '/packet loss/{print $((NF-4))}');
loss=${loss_percent%?};
echo ${loss%.*}
echo ${loss%.*};
return $?;
};