diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-10 01:06:22 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-08-16 08:05:46 +0200 |
commit | edafa26f9e6298bcd935a2eaf9dfcec8868eff8d (patch) | |
tree | a132dc7790407375454e84594cff8899f2ffc4dc /linux | |
parent | 68460b25e39c583d04edaac3ea1ce3e5bdee6b89 (diff) |
Simplify Action_pickFromVector() width parameter usage
Pass one less instead of subtracting one inside the function.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index f31137fe..66fcb5f3 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -138,7 +138,7 @@ static Htop_Reaction Platform_actionSetIOPriority(State* st) { IOPriority ioprio1 = p->ioPriority; Panel* ioprioPanel = IOPriorityPanel_new(ioprio1); - const void* set = Action_pickFromVector(st, ioprioPanel, 21, true); + const void* set = Action_pickFromVector(st, ioprioPanel, 20, true); if (set) { IOPriority ioprio2 = IOPriorityPanel_getIOPriority(ioprioPanel); bool ok = MainPanel_foreachProcess(st->mainPanel, LinuxProcess_setIOPriority, (Arg) { .i = ioprio2 }, NULL); |