From 7d0543f5762f8680ed6cc55f54dad533bbb418ea1739e2ebd241e058af6f9d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 6 Apr 2018 12:42:43 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:chromium/memory-constraints?expand=0&rev=8 --- memory-constraints.macros | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory-constraints.macros b/memory-constraints.macros index 046ddd7..f097cc2 100644 --- a/memory-constraints.macros +++ b/memory-constraints.macros @@ -18,7 +18,7 @@ mem_per_process="$_core_memory" \ max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) \ max_jobs="$(($max_mem / ($mem_per_process * 1000)))" \ - test "$_threads" -gt "$max_jobs" && $_threads="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" \ + test "$_threads" -gt "$max_jobs" && _threads="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" \ test "$_threads" -le 0 && $_threads=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits" \ fi \ %global jobs $_threads \