[htop-general] Patch - fix keys used to change nice value
Brought to you by:
loderunner
From: Gadiyar, A. <ga...@ti...> - 2009-04-11 07:29:38
|
The help text says F8, -, and ] are used to raise priority, while F7, +, and [ are used to lower priority. However, the code reverses F7 and F8. Either fix the help text or fix the code to do what the help text says Signed-off-by: Anand Gadiyar <ga...@ti...> --- htop.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: htop-0.8.1/htop.c =================================================================== --- htop-0.8.1.orig/htop.c +++ htop-0.8.1/htop.c @@ -701,7 +701,7 @@ int main(int argc, char** argv) { ProcessList_invertSortOrder(pl); break; } - case KEY_F(8): + case KEY_F(7): case '[': case '=': case '+': @@ -709,7 +709,7 @@ int main(int argc, char** argv) { doRefresh = changePriority(panel, 1); break; } - case KEY_F(7): + case KEY_F(8): case ']': case '-': { |