From 83664e4ef3a06d0825c38386c462b4553673a3e5 Mon Sep 17 00:00:00 2001 From: acetone <63557806+acetoneRu@users.noreply.github.com> Date: Tue, 13 Apr 2021 12:36:07 -0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B3=D0=BE=20=D0=BF=D0=B0=D0=B4=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=B3=D0=B0=20=D0=BF=D1=80=D0=B8=20ygg>=3D25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit До этого походу под героином писал... --- yggdrasil/y2r.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yggdrasil/y2r.sh b/yggdrasil/y2r.sh index f3cb56f..522d42b 100644 --- a/yggdrasil/y2r.sh +++ b/yggdrasil/y2r.sh @@ -110,13 +110,12 @@ rm $success echo -e "===========================================================" echo -e "Reseed building..." -yggvolume=$(($yggaddr / 100 * 70)) # 70% ресида - Ygg-роутеры. echo -n "Need " -if [[ $yggvolume < $minimum ]]; then # Если их меньше minimum, докладываем 25 роутеров обычных +if [[ $yggvolume < $minimum ]]; then # Если ygg-роутеров меньше minimum, докладываем 25 обычных роутеров echo -n "25 " paddingcount=25 else - paddingcount=$(($yggaddr / 100 * 30)) + paddingcount=$(($yggaddr / 10 * 3)) echo -n "$paddingcount " fi echo "regular routers"