diff options
Diffstat (limited to 'sysutils/htop/files/patch-htop.c')
-rw-r--r-- | sysutils/htop/files/patch-htop.c | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/sysutils/htop/files/patch-htop.c b/sysutils/htop/files/patch-htop.c index a78e482384c0..2754eeb0328a 100644 --- a/sysutils/htop/files/patch-htop.c +++ b/sysutils/htop/files/patch-htop.c @@ -1,38 +1,36 @@ ---- htop.c.orig 2012-10-05 07:55:31.000000000 +0800 -+++ htop.c 2013-04-21 03:47:54.882373049 +0800 -@@ -126,7 +126,7 @@ - mvaddstr(13, 0, " Space: tag processes F: cursor follows process"); - mvaddstr(14, 0, " U: untag all processes + -: expand/collapse tree"); - mvaddstr(15, 0, " F9 k: kill process/tagged processes P M T: sort by CPU%, MEM% or TIME"); -- mvaddstr(16, 0, " ] F7: higher priority (root only) i: set IO priority"); -+ mvaddstr(16, 0, " ] F7: higher priority (root only)"); - mvaddstr(17, 0, " [ F8: lower priority (+ nice) I: invert sort order"); +--- htop.c.orig 2014-10-19 02:15:19.000000000 +0800 ++++ htop.c 2014-10-19 02:17:10.000000000 +0800 +@@ -96,7 +96,6 @@ #if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY) - if (pl->cpuCount > 1) -@@ -146,7 +146,7 @@ - mvaddstr(13, 0, " Space"); mvaddstr(13,40, " F"); - mvaddstr(14, 0, " U"); mvaddstr(14,40, " + -"); - mvaddstr(15, 0, " F9 k"); mvaddstr(15,40, "P M T"); -- mvaddstr(16, 0, " ] F7"); mvaddstr(16,40, " i"); -+ mvaddstr(16, 0, " ] F7"); - mvaddstr(17, 0, " [ F8"); mvaddstr(17,40, " I"); - mvaddstr(18,40, " F6 >"); - #if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY) -@@ -850,7 +850,7 @@ - ((Object*)sortPanel)->delete((Object*)sortPanel); - refreshTimeout = 0; - break; -- } -+ }/* - case 'i': - { - Process* p = (Process*) Panel_getSelected(panel); -@@ -869,7 +869,7 @@ - ProcessList_printHeader(pl, Panel_getHeader(panel)); - refreshTimeout = 0; + { .key = " a: ", .info = "set CPU affinity" }, + #endif +- { .key = " i: ", .info = "set IO prority" }, + { .key = " l: ", .info = "list open files with lsof" }, + { .key = " s: ", .info = "trace syscalls with strace" }, + { .key = " ", .info = "" }, +@@ -856,25 +855,6 @@ + } break; + } +- case 'i': +- { +- Process* p = (Process*) Panel_getSelected(panel); +- if (!p) break; +- IOPriority ioprio = p->ioPriority; +- Panel* ioprioPanel = IOPriorityPanel_new(ioprio); +- const char* fuFunctions[] = {"Set ", "Cancel ", NULL}; +- void* set = pickFromVector(panel, ioprioPanel, 21, headerHeight, fuFunctions, defaultBar, header); +- if (set) { +- IOPriority ioprio = IOPriorityPanel_getIOPriority(ioprioPanel); +- bool ok = foreachProcess(panel, (ForeachProcessFn) Process_setIOPriority, (size_t) ioprio, NULL); +- if (!ok) +- beep(); +- } +- Panel_delete((Object*)ioprioPanel); +- ProcessList_printHeader(pl, Panel_getHeader(panel)); +- refreshTimeout = 0; +- break; - } -+ }*/ case 'I': { refreshTimeout = 0; |