summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorBert Wesarg <bert.wesarg@googlemail.com>2020-08-31 22:05:01 +0200
committerBert Wesarg <bert.wesarg@googlemail.com>2020-08-31 22:18:18 +0200
commitb0f1336f79e5f07f591e05ceec13637b7452a15c (patch)
treec745bfb6212e894a96dfea9f80b4a3ea5632c44f /AffinityPanel.c
parentf861a2c61692eda9d24fc5e32608b3a56bb721bc (diff)
affinity panel: show CPUs in the topology tree as `CPU x`
As it is in the non-topology list.
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c
index 23f0ca80..91a9d456 100644
--- a/AffinityPanel.c
+++ b/AffinityPanel.c
@@ -260,7 +260,7 @@ static HandlerResult AffinityPanel_eventHandler(Panel* super, int ch) {
static MaskItem *AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, unsigned indent, MaskItem *parent) {
const char* type_name = hwloc_obj_type_string(obj->type);
- const char* index_prefix = " #";
+ const char* index_prefix = "#";
unsigned depth = obj->depth;
unsigned index = obj->logical_index;
size_t off = 0, left = 10 * depth;
@@ -286,7 +286,7 @@ static MaskItem *AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u
off += len, left -= len;
}
- xSnprintf(buf, 64, "%s%s%u", type_name, index_prefix, index);
+ xSnprintf(buf, 64, "%s %s%u", type_name, index_prefix, index);
MaskItem *item = MaskItem_newMask(buf, indent_buf, obj->complete_cpuset, false);
if (parent)

© 2014-2024 Faster IT GmbH | imprint | privacy policy