Skip to content

Commit

Permalink
Correct minnodes-maxnodes delimiter for --nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Nov 16, 2017
1 parent 57ebc0c commit 09a90b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slurm_drmaa/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ slurmdrmaa_add_attribute(job_desc_msg_t *job_desc, unsigned attr, const char *va
break;
case SLURM_NATIVE_CPUS_PER_TASK:
fsd_log_debug(( "# cpus_per_task = %s", value));
job_desc->cpus_per_task = fsd_atoi(value);
job_desc->cpus_per_task = fsd_atoi(value);
break;
case SLURM_NATIVE_EXCLUSIVE:
fsd_log_debug(( "# exclusive -> shared = 0"));
Expand Down Expand Up @@ -237,7 +237,7 @@ slurmdrmaa_add_attribute(job_desc_msg_t *job_desc, unsigned attr, const char *va
case SLURM_NATIVE_NODES:
ptr = strdup(value);

if((token = strtok_r(ptr,"=",&rest)) == NULL){
if((token = strtok_r(ptr,"-",&rest)) == NULL){
fsd_log_error(("strtok_r returned NULL"));
}

Expand Down

0 comments on commit 09a90b6

Please sign in to comment.