mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-11 01:14:12 +08:00
update
This commit is contained in:
parent
27f44c8e72
commit
be751328fc
@ -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 $?;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user