From 9b81dec42b6202521741e32ea1b92a90d83ad4ef Mon Sep 17 00:00:00 2001 From: Dominik Bartkiewicz <bart@schedmd.com> Date: Wed, 20 Jul 2016 17:03:54 -0700 Subject: [PATCH] display job array tasks in x-y:z format only when is more then 5 tasks bug 2837 --- src/common/slurm_protocol_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/slurm_protocol_pack.c b/src/common/slurm_protocol_pack.c index fc543257893..49e5d2375f7 100644 --- a/src/common/slurm_protocol_pack.c +++ b/src/common/slurm_protocol_pack.c @@ -5436,7 +5436,7 @@ static void _xlate_task_str(job_info_t *job_ptr) /* Check first for a step function */ i_first = bit_ffs(task_bitmap); i_last = bit_fls(task_bitmap); - if (((i_last - i_first) > 10) && + if (((i_last - i_first) > 10) && (bit_set_count(task_bitmap) > 5) && !bit_test(task_bitmap, i_first + 1)) { bool is_step = true; i_prev = i_first; -- GitLab