summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-08-26 10:15:00 +1000
committerNathan Scott <nathans@redhat.com>2020-08-26 10:39:43 +1000
commit728b04bbb5667291f1e56058240fcd7e03cbfe74 (patch)
treead199ce3a3303e723eb9332aa6cb847b9530084a /Action.c
parentd0f31ede5624ed2f35ca25043f6a28adfe3bc171 (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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Action.c b/Action.c
index a7747f52..363c2b98 100644
--- a/Action.c
+++ b/Action.c
@@ -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);

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