mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-02 06:08:54 +08:00
update
This commit is contained in:
1 parent
8bd0ee1acc
commit
b953ca1b64
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ get_rnd(){
|
||||
};
|
||||
|
||||
get_ping_loss(){
|
||||
loss_percent=$(ping -c 5 -q $1 | awk '/packet loss/{print $7}');
|
||||
loss_percent=$(ping -c 5 -q $1 | awk '/packet loss/{print $6}');
|
||||
echo ${loss_percent%?};
|
||||
return $?;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user