Skip to content
Snippets Groups Projects
Commit a81c213c authored by Danny Auble's avatar Danny Auble
Browse files

reoder check for slightly faster init of header

parent 02fa8f27
No related branches found
No related tags found
No related merge requests found
......@@ -83,12 +83,12 @@ void init_header(header_t *header, slurm_msg_t *msg,
|| msg->msg_type == ACCOUNTING_FIRST_REG) {
uint32_t rpc_version =
((accounting_update_msg_t *)msg->data)->rpc_version;
if(rpc_version < 5)
header->version = SLURM_1_3_PROTOCOL_VERSION;
else if(rpc_version < 6)
header->version = SLURM_2_0_PROTOCOL_VERSION;
else if(rpc_version >= 6)
if(rpc_version >= 6)
header->version = SLURM_PROTOCOL_VERSION;
else if(rpc_version >= 5)
header->version = SLURM_2_0_PROTOCOL_VERSION;
else
header->version = SLURM_1_3_PROTOCOL_VERSION;
} else
header->version = SLURM_PROTOCOL_VERSION;
......
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