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

Minor changes in smap output for consistency with sinfo and squeue

UP -> up
DOWN -> down
UNLIMITED -> infinite
parent caf7e8c4
No related branches found
No related tags found
No related merge requests found
......@@ -527,17 +527,17 @@ static int _print_text_part(partition_info_t *part_ptr,
mvwprintw(ba_system_ptr->text_win,
ba_system_ptr->ycord,
ba_system_ptr->xcord,
"UP");
"up");
else
mvwprintw(ba_system_ptr->text_win,
ba_system_ptr->ycord,
ba_system_ptr->xcord,
"DOWN");
"down");
ba_system_ptr->xcord += 7;
if (part_ptr->max_time == INFINITE)
snprintf(time_buf, sizeof(time_buf),
"UNLIMITED");
"infinite");
else {
snprint_time(time_buf,
sizeof(time_buf),
......@@ -673,13 +673,13 @@ static int _print_text_part(partition_info_t *part_ptr,
if (params.display != BGPART) {
if (part_ptr->state_up)
printf(" UP ");
printf(" up ");
else
printf(" DOWN ");
printf(" down ");
if (part_ptr->max_time == INFINITE)
snprintf(time_buf, sizeof(time_buf),
"UNLIMITED");
"infinite");
else {
snprint_time(time_buf,
sizeof(time_buf),
......
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