Skip to content
Snippets Groups Projects
Commit 3f4c7338 authored by Moe Jette's avatar Moe Jette
Browse files
parent 70847d39
No related branches found
No related tags found
No related merge requests found
...@@ -666,7 +666,7 @@ _pick_best_nodes(struct node_set *node_set_ptr, int node_set_size, ...@@ -666,7 +666,7 @@ _pick_best_nodes(struct node_set *node_set_ptr, int node_set_size,
if (shared && ((i+1) < node_set_size) && if (shared && ((i+1) < node_set_size) &&
(node_set_ptr[i].weight == node_set_ptr[i+1].weight)) { (node_set_ptr[i].weight == node_set_ptr[i+1].weight)) {
/* Keep accumulating so we can pick the /* Keep accumulating so we can pick the
* most lighly loaded nodes */ * most lightly loaded nodes */
continue; continue;
} }
......
...@@ -503,23 +503,23 @@ static void ...@@ -503,23 +503,23 @@ static void
_print_job_information(resource_allocation_response_msg_t *resp) _print_job_information(resource_allocation_response_msg_t *resp)
{ {
int i; int i;
char tmp_str[10], job_details[4096]; char *str = NULL;
char *sep = "";
sprintf(job_details, "jobid %d: nodes(%d):`%s', cpu counts: ", if (!_verbose)
resp->job_id, resp->node_cnt, resp->node_list); return;
xstrfmtcat(str, "jobid %u nodes(%u):`%s', cpu counts: ",
resp->job_id, resp->node_cnt, resp->node_list);
for (i = 0; i < resp->num_cpu_groups; i++) { for (i = 0; i < resp->num_cpu_groups; i++) {
sprintf(tmp_str, ",%u(x%u)", resp->cpus_per_node[i], xstrfmtcat(str, "%s%u(x%u)",
resp->cpu_count_reps[i]); sep, resp->cpus_per_node[i],
if (i == 0) resp->cpu_count_reps[i]);
strcat(job_details, &tmp_str[1]); sep = ",";
else if ((strlen(tmp_str) + strlen(job_details)) <
sizeof(job_details))
strcat(job_details, tmp_str);
else
break;
} }
verbose("%s",job_details); verbose("%s", str);
xfree(str);
} }
/* Set SLURM_UMASK environment variable with current state */ /* Set SLURM_UMASK environment variable with current state */
......
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