From be751328fceb3ea19f52cf99b97fb5178dbb3eae Mon Sep 17 00:00:00 2001 From: darkclip Date: Thu, 3 Aug 2023 01:12:50 +0800 Subject: [PATCH] update --- cf-watch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-watch.sh b/cf-watch.sh index 7e844c42..9d7d4302 100755 --- a/cf-watch.sh +++ b/cf-watch.sh @@ -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 $?; };