Browse Source

utils.py: Fix parallel_make limit

parallel_make_argument() was incorrectly taking the maximum of the limit
and the calculated value instead of the minimum.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Joshua Watt 6 years ago
parent
commit
45205be547
1 changed files with 1 additions and 1 deletions
  1. 1 1
      meta/lib/oe/utils.py

+ 1 - 1
meta/lib/oe/utils.py

@@ -195,7 +195,7 @@ def parallel_make_argument(d, fmt, limit=None):
     v = parallel_make(d)
     if v:
         if limit:
-            v = max(limit, v)
+            v = min(limit, v)
         return fmt % v
     return ''