From 31ff414ca84656c9ed10581cd276d7466a4abe27 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 24 Nov 2022 18:43:29 +0100 Subject: [PATCH] copr-fe-dev: assure there's no "zero" in threads --- roles/copr/frontend/templates/httpd/coprs.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/frontend/templates/httpd/coprs.conf b/roles/copr/frontend/templates/httpd/coprs.conf index ebf6cfd472..f7193a71c3 100644 --- a/roles/copr/frontend/templates/httpd/coprs.conf +++ b/roles/copr/frontend/templates/httpd/coprs.conf @@ -4,7 +4,7 @@ Alias "/db_dumps/" "/var/www/html/db_dumps/" {%- macro develizer(processes, threads) %} {% if devel %} -processes=1 threads={{ (threads/2) |int}} +processes=1 threads={{ ((threads+1)/2)|int}} {%- else %} processes={{ processes }} threads={{ threads }} {%- endif %}