From 3644504c94baa0430f33d3008d1571e419f21e2a Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Mon, 11 Apr 2016 11:25:26 -0700 Subject: [PATCH] Improve names for bluegene clusters when dealing with reservations. --- src/sview/resv_info.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/sview/resv_info.c b/src/sview/resv_info.c index 8950d14300f..cc034bd6692 100644 --- a/src/sview/resv_info.c +++ b/src/sview/resv_info.c @@ -392,7 +392,10 @@ static const char *_set_resv_msg(resv_desc_msg_t *resv_msg, type = "name"; break; case SORTID_NODE_CNT: - type = "Node Count"; + if (cluster_flags & CLUSTER_FLAG_BG) + type = "Midplane Count"; + else + type = "Node Count"; block_inx = 0; tmp_text = xstrdup(new_text); tok = strtok_r(tmp_text, ",", &last); @@ -416,7 +419,10 @@ static const char *_set_resv_msg(resv_desc_msg_t *resv_msg, break; case SORTID_NODELIST: resv_msg->node_list = xstrdup(new_text); - type = "node list"; + if (cluster_flags & CLUSTER_FLAG_BG) + type = "Midplane List"; + else + type = "Node List"; break; case SORTID_PARTITION: resv_msg->partition = xstrdup(new_text); -- GitLab