Skip to content

Commit 7d520c3

Browse files
bgoglinndenoyelle
authored andcommitted
lstopo/draw: fix (again) the separator between boxes
Commit c9df031 fixed the PU separator but change the I/O separator to 0 too. Fix that case. Signed-off-by: Brice Goglin <[email protected]>
1 parent df3fb58 commit 7d520c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/lstopo/lstopo-draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ place_children(struct lstopo_output *loutput, hwloc_obj_t parent,
542542

543543
/* recurse into children to prepare their sizes,
544544
* and check whether all normal children are PUs. */
545-
normal_children_are_PUs = 1;
545+
normal_children_are_PUs = (parent->arity > 0);
546546
for(i = 0, child = next_child(loutput, parent, LSTOPO_CHILD_KIND_ALL, NULL, &ncstate);
547547
child;
548548
i++, child = next_child(loutput, parent, LSTOPO_CHILD_KIND_ALL, child, &ncstate)) {

0 commit comments

Comments
 (0)