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 $?; };