Lines 1-36
Link Here
|
1 |
--- htop.c.orig 2014-10-19 02:15:19.000000000 +0800 |
|
|
2 |
+++ htop.c 2014-10-19 02:17:10.000000000 +0800 |
3 |
@@ -96,7 +96,6 @@ |
4 |
#if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY) |
5 |
{ .key = " a: ", .info = "set CPU affinity" }, |
6 |
#endif |
7 |
- { .key = " i: ", .info = "set IO prority" }, |
8 |
{ .key = " l: ", .info = "list open files with lsof" }, |
9 |
{ .key = " s: ", .info = "trace syscalls with strace" }, |
10 |
{ .key = " ", .info = "" }, |
11 |
@@ -856,25 +855,6 @@ |
12 |
} |
13 |
break; |
14 |
} |
15 |
- case 'i': |
16 |
- { |
17 |
- Process* p = (Process*) Panel_getSelected(panel); |
18 |
- if (!p) break; |
19 |
- IOPriority ioprio = p->ioPriority; |
20 |
- Panel* ioprioPanel = IOPriorityPanel_new(ioprio); |
21 |
- const char* fuFunctions[] = {"Set ", "Cancel ", NULL}; |
22 |
- void* set = pickFromVector(panel, ioprioPanel, 21, headerHeight, fuFunctions, defaultBar, header); |
23 |
- if (set) { |
24 |
- IOPriority ioprio = IOPriorityPanel_getIOPriority(ioprioPanel); |
25 |
- bool ok = foreachProcess(panel, (ForeachProcessFn) Process_setIOPriority, (size_t) ioprio, NULL); |
26 |
- if (!ok) |
27 |
- beep(); |
28 |
- } |
29 |
- Panel_delete((Object*)ioprioPanel); |
30 |
- ProcessList_printHeader(pl, Panel_getHeader(panel)); |
31 |
- refreshTimeout = 0; |
32 |
- break; |
33 |
- } |
34 |
case 'I': |
35 |
{ |
36 |
refreshTimeout = 0; |