diff --git a/src/plugins/gres/gpu/gres_gpu.c b/src/plugins/gres/gpu/gres_gpu.c index 4cd5ae6445ffe09b188a5d42b6ed88373f00e650..5eda6f11aee3987ea28fd640519f608ab0f5ee82 100644 --- a/src/plugins/gres/gpu/gres_gpu.c +++ b/src/plugins/gres/gpu/gres_gpu.c @@ -1219,6 +1219,8 @@ extern uint32_t step_test(void *step_gres_data, void *job_gres_data, gres_cnt /= step_gres_ptr->gpu_cnt_alloc; else if (step_gres_ptr->gpu_cnt_alloc > gres_cnt) gres_cnt = 0; + else + gres_cnt = NO_VAL; return gres_cnt; } diff --git a/src/plugins/gres/nic/gres_nic.c b/src/plugins/gres/nic/gres_nic.c index c6127d8e8ab1d6747263717209e3a4543dc37d0d..37060fe5b49dbb168e768217c7c9de184f8797f5 100644 --- a/src/plugins/gres/nic/gres_nic.c +++ b/src/plugins/gres/nic/gres_nic.c @@ -1219,6 +1219,8 @@ extern uint32_t step_test(void *step_gres_data, void *job_gres_data, gres_cnt /= step_gres_ptr->nic_cnt_alloc; else if (step_gres_ptr->nic_cnt_alloc > gres_cnt) gres_cnt = 0; + else + gres_cnt = NO_VAL; return gres_cnt; }