diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-26 10:15:00 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-26 10:39:43 +1000 |
commit | 728b04bbb5667291f1e56058240fcd7e03cbfe74 (patch) | |
tree | ad199ce3a3303e723eb9332aa6cb847b9530084a /Action.c | |
parent | d0f31ede5624ed2f35ca25043f6a28adfe3bc171 (diff) |
Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into bertwesarg-ci-hwloc-job
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -318,10 +318,11 @@ static Htop_Reaction actionSetAffinity(State* st) { if (!p) return HTOP_OK; Affinity* affinity1 = Affinity_get(p, st->pl); if (!affinity1) return HTOP_OK; - Panel* affinityPanel = AffinityPanel_new(st->pl, affinity1); + int width; + Panel* affinityPanel = AffinityPanel_new(st->pl, affinity1, &width); Affinity_delete(affinity1); - void* set = Action_pickFromVector(st, affinityPanel, 15, true); + void* set = Action_pickFromVector(st, affinityPanel, width, true); if (set) { Affinity* affinity2 = AffinityPanel_getAffinity(affinityPanel, st->pl); bool ok = MainPanel_foreachProcess((MainPanel*)panel, (MainPanel_ForeachProcessFn) Affinity_set, (Arg){ .v = affinity2 }, NULL); |