Skip to content

Commit ad28d8e

Browse files
authored
Apply suggestions from code review
Co-authored-by: Michal Čihař <michal@cihar.com>
1 parent fa85def commit ad28d8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,11 @@ set_real_ip_from ::/0;
418418
: "${CELERY_MAIN_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
419419
: "${CELERY_NOTIFY_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
420420
: "${CELERY_TRANSLATE_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
421-
: "${CELERY_MEMORY_OPTIONS:="--concurrency $((WEBLATE_WORKERS == 1 ? 1 : (WEBLATE_WORKERS + 1) / 2))"}"
421+
: "${CELERY_MEMORY_OPTIONS:="--concurrency $((WEBLATE_WORKERS == 1 ? 1 : WEBLATE_WORKERS / 2))"}"
422422
: "${CELERY_BACKUP_OPTIONS:="--concurrency 1"}"
423423
: "${CELERY_BEAT_OPTIONS:=""}"
424424
: "${CELERY_SINGLE_OPTIONS:=""}"
425-
: "${WEB_WORKERS:="$((WEBLATE_WORKERS <= 3 ? 2 : (WEBLATE_WORKERS + 1) / 2))"}"
425+
: "${WEB_WORKERS:="$((WEBLATE_WORKERS <= 3 ? 2 : WEBLATE_WORKERS / 2))"}"
426426
: "${WEB_BLOCKING_THREADS:="$((WEBLATE_WORKERS * 2))"}"
427427
: "${GRANIAN_ARGS:=""}"
428428

0 commit comments

Comments
 (0)