Test: Clamp job count
Vicki Pfau vi@endrift.com
Fri, 17 Jul 2020 02:55:27 -0700
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/platform/test/cinema-main.c
→
src/platform/test/cinema-main.c
@@ -210,6 +210,12 @@ showUsage = true;
break; case 'j': jobs = atoi(optarg); + if (jobs > MAX_JOBS) { + jobs = MAX_JOBS; + } + if (jobs < 1) { + jobs = 1; + } break; case 'n': dryRun = true;