Skip to content

Commit

Permalink
modules/devices: fixed CPU topology string when nodes == 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ocerman authored and lpereira committed Nov 8, 2021
1 parent 78dbd1b commit 3de4415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ gchar *processor_describe_default(GSList * processors)
ret = g_strdup_printf(full_fmt, packs, cores * nodes, nodes, threads);
} else {
full_fmt = g_strdup_printf(_(/*/NP procs; NC cores; NT threads*/ "%s; %s; %s"), packs_fmt, cores_fmt, threads_fmt);
ret = g_strdup_printf(full_fmt, packs, cores, nodes, threads);
ret = g_strdup_printf(full_fmt, packs, cores, threads);
}
g_free(full_fmt);
return ret;
Expand Down

0 comments on commit 3de4415

Please sign in to comment.