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

Correctly report DRAINED node state as type OTHER for "sinfo --summarize".

parent 3b7a4e7f
No related branches found
No related tags found
No related merge requests found
This file describes changes in recent versions of SLURM. It primarily
documents those changes that are of interest to users and admins.
* Changes in SLURM 1.0.2
========================
-- Correctly report DRAINED node state as type OTHER for "sinfo --summarize".
* Changes in SLURM 1.0.1
========================
-- Assorted updates and clarifications in documentation.
-- able to detect which munge installation to use 32/64 bit
-- Detect which munge installation to use 32/64 bit.
* Changes in SLURM 1.0.0
========================
......
......@@ -521,8 +521,10 @@ static void _update_sinfo(sinfo_data_t *sinfo_ptr, node_info_t *node_ptr)
}
base_state = node_ptr->node_state & NODE_STATE_BASE;
if ((base_state == NODE_STATE_ALLOCATED)
|| (node_ptr->node_state & NODE_STATE_COMPLETING))
if (node_ptr->node_state & NODE_STATE_DRAIN)
sinfo_ptr->nodes_other++;
else if ((base_state == NODE_STATE_ALLOCATED)
|| (node_ptr->node_state & NODE_STATE_COMPLETING))
sinfo_ptr->nodes_alloc++;
else if (base_state == NODE_STATE_IDLE)
sinfo_ptr->nodes_idle++;
......
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