mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
affinity panel: show CPUs in the topology tree as CPU x
As it is in the non-topology list.
This commit is contained in:
parent
f861a2c616
commit
b0f1336f79
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user