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>
@@ -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 ''