mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-30 16:29:41 +08:00
update
This commit is contained in:
1 parent
27f44c8e72
commit
be751328fc
1 file changed
+1
-1
+1
-1
@@ -8,7 +8,7 @@ get_rnd(){
|
|||||||
get_ping_loss(){
|
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 $((NF-4))}');
|
||||||
loss=${loss_percent%?};
|
loss=${loss_percent%?};
|
||||||
echo ${loss%.*}
|
echo ${loss%.*};
|
||||||
return $?;
|
return $?;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user