Skip to content

Commit

Permalink
lstopo/draw: fix --binding-color=none
Browse files Browse the repository at this point in the history
Additional condition was forgotten when this option was introduced
in 199c8a3

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 8, 2018
1 parent da16f7e commit 63becf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/lstopo/lstopo-draw.c
Expand Up @@ -817,7 +817,7 @@ lstopo_set_object_color(struct lstopo_output *loutput,
case HWLOC_OBJ_NUMANODE:
if (loutput->show_disallowed && lstopo_numa_disallowed(loutput, obj)) {
s->bg = &DISALLOWED_COLOR;
} else if (lstopo_numa_binding(loutput, obj)) {
} else if (loutput->show_binding && lstopo_numa_binding(loutput, obj)) {
s->bg = &BINDING_COLOR;
} else {
s->bg = &MEMORY_COLOR;
Expand Down Expand Up @@ -846,7 +846,7 @@ lstopo_set_object_color(struct lstopo_output *loutput,
case HWLOC_OBJ_PU:
if (loutput->show_disallowed && lstopo_pu_disallowed(loutput, obj)) {
s->bg = &DISALLOWED_COLOR;
} else if (lstopo_pu_binding(loutput, obj)) {
} else if (loutput->show_binding && lstopo_pu_binding(loutput, obj)) {
s->bg = &BINDING_COLOR;
} else {
s->bg = &THREAD_COLOR;
Expand Down

0 comments on commit 63becf7

Please sign in to comment.