From 5ccd51744979f194006e47b35106d1d7b0fbd856 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 18 Sep 2024 20:41:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meta/files/zip_image.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/files/zip_image.sh b/meta/files/zip_image.sh index 087d670c..36f212f9 100644 --- a/meta/files/zip_image.sh +++ b/meta/files/zip_image.sh @@ -4,7 +4,9 @@ IMAGE_DIR="./images" COMP_DIR="$IMAGE_DIR/comp" WEBP_DIR="$IMAGE_DIR/webp" -THREADS=4 # Количество параллельных процессов +# Автоматическое определение количества ядер процессора +THREADS=$(getconf _NPROCESSORS_ONLN) +echo "Используется $THREADS потоков для обработки." # Файлы логирования LOG_FILE="./compression.log"