mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-13 22:23:42 +08:00
update
This commit is contained in:
1 parent
be751328fc
commit
6413f83e8d
1 file changed
+1
-1
+1
-1
@@ -6,7 +6,7 @@ get_rnd(){
|
||||
};
|
||||
|
||||
get_ping_loss(){
|
||||
loss_percent=$(ping -c 5 -q $1 | awk '/packet loss/{print $((NF-4))}');
|
||||
loss_percent=$(ping -c 5 -q $1 | awk '/packet loss/{print $7}');
|
||||
loss=${loss_percent%?};
|
||||
echo ${loss%.*};
|
||||
return $?;
|
||||
|
||||
Reference in new issue
Block a user