Skip to content
Snippets Groups Projects
Commit 3614df08 authored by Moe Jette's avatar Moe Jette
Browse files

Set minimum default to 1.

parent 172fe4f2
No related branches found
No related tags found
No related merge requests found
...@@ -69,5 +69,8 @@ slurm_sched_plugin_schedule( void ) ...@@ -69,5 +69,8 @@ slurm_sched_plugin_schedule( void )
u_int32_t u_int32_t
slurm_sched_plugin_initial_priority( u_int32_t max_prio ) slurm_sched_plugin_initial_priority( u_int32_t max_prio )
{ {
return (max_prio - 1); if (max_prio >= 2)
return (max_prio - 1);
else
return 1;
} }
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