Skip to content
Snippets Groups Projects
Commit 80fae1eb authored by Morris Jette's avatar Morris Jette
Browse files

No change in logic

Fix indent and add brackets
parent 1a862096
No related branches found
No related tags found
No related merge requests found
...@@ -307,16 +307,17 @@ extern int launch_common_create_job_step(srun_job_t *job, bool use_all_cpus, ...@@ -307,16 +307,17 @@ extern int launch_common_create_job_step(srun_job_t *job, bool use_all_cpus,
job->step_ctx = slurm_step_ctx_create_no_alloc( job->step_ctx = slurm_step_ctx_create_no_alloc(
&job->ctx_params, job->stepid); &job->ctx_params, job->stepid);
} else { } else {
if (opt.immediate) if (opt.immediate) {
step_wait = MAX(1, opt.immediate - step_wait = MAX(1, opt.immediate -
difftime(time(NULL), difftime(time(NULL),
srun_begin_time)) * srun_begin_time)) *
1000; 1000;
else } else {
/* Wait 60 to 70 seconds for response */ /* Wait 60 to 70 seconds for response */
step_wait = (getpid() % 10) * 1000 + 60000; step_wait = (getpid() % 10) * 1000 + 60000;
job->step_ctx = slurm_step_ctx_create_timeout( job->step_ctx = slurm_step_ctx_create_timeout(
&job->ctx_params, step_wait); &job->ctx_params, step_wait);
}
} }
if (job->step_ctx != NULL) { if (job->step_ctx != NULL) {
if (i > 0) if (i > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment