mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Simplify Action_pickFromVector() width parameter usage
Pass one less instead of subtracting one inside the function.
This commit is contained in:

committed by
BenBE

parent
68460b25e3
commit
edafa26f9e
@ -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);
|
||||
|
Reference in New Issue
Block a user