main.c
changeset 331 7e3b3663bb34
parent 319 466e01761667
child 335 b4a5d9544836
equal deleted inserted replaced
330:a283e21c1964 331:7e3b3663bb34
   146                 command_line.request = c_INFO;
   146                 command_line.request = c_INFO;
   147                 command_line.jobid = atoi(optarg);
   147                 command_line.jobid = atoi(optarg);
   148                 break;
   148                 break;
   149             case 'N':
   149             case 'N':
   150                 command_line.num_slots = atoi(optarg);
   150                 command_line.num_slots = atoi(optarg);
       
   151                 if (command_line.num_slots < 0)
       
   152                     command_line.num_slots = 0;
   151                 break;
   153                 break;
   152             case 'r':
   154             case 'r':
   153                 command_line.request = c_REMOVEJOB;
   155                 command_line.request = c_REMOVEJOB;
   154                 command_line.jobid = atoi(optarg);
   156                 command_line.jobid = atoi(optarg);
   155                 break;
   157                 break;