Test: Clamp job count

This commit is contained in:
Vicki Pfau 2020-07-17 02:55:27 -07:00
parent ee50cc7656
commit 9f370be824
1 changed files with 6 additions and 0 deletions

View File

@ -210,6 +210,12 @@ static bool parseCInemaArgs(int argc, char* const* argv) {
break;
case 'j':
jobs = atoi(optarg);
if (jobs > MAX_JOBS) {
jobs = MAX_JOBS;
}
if (jobs < 1) {
jobs = 1;
}
break;
case 'n':
dryRun = true;