This commit is contained in:
darkclip committed 2023-07-25 17:33:59 +08:00
1 parent 8bd0ee1acc
commit b953ca1b64
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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 $?;
};