Browse Source

Merge pull request #12 from acetoneRu/master

Фикс пустого паддинга при ygg>=25
pull/13/head
orignal 4 years ago committed by GitHub
parent
commit
0c798550d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      yggdrasil/y2r.sh

5
yggdrasil/y2r.sh

@ -110,13 +110,12 @@ rm $success
echo -e "===========================================================" echo -e "==========================================================="
echo -e "Reseed building..." echo -e "Reseed building..."
yggvolume=$(($yggaddr / 100 * 70)) # 70% ресида - Ygg-роутеры.
echo -n "Need " echo -n "Need "
if [[ $yggvolume < $minimum ]]; then # Если их меньше minimum, докладываем 25 роутеров обычных if [[ $yggvolume < $minimum ]]; then # Если ygg-роутеров меньше minimum, докладываем 25 обычных роутеров
echo -n "25 " echo -n "25 "
paddingcount=25 paddingcount=25
else else
paddingcount=$(($yggaddr / 100 * 30)) paddingcount=$(($yggaddr / 10 * 3))
echo -n "$paddingcount " echo -n "$paddingcount "
fi fi
echo "regular routers" echo "regular routers"

Loading…
Cancel
Save