top: display sort indicator in memory display
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
351fec332a
commit
24b71fd894
@ -797,7 +797,7 @@ static NOINLINE void display_topmem_process_list(int lines_rem, int scr_width)
|
|||||||
|
|
||||||
display_topmem_header(scr_width, &lines_rem);
|
display_topmem_header(scr_width, &lines_rem);
|
||||||
strcpy(line_buf, HDR_STR " COMMAND");
|
strcpy(line_buf, HDR_STR " COMMAND");
|
||||||
line_buf[11 + sort_field * 6] = '<';
|
line_buf[11 + sort_field * 6] = "^_"[inverted];
|
||||||
printf(OPT_BATCH_MODE ? "%.*s" : "\e[7m%.*s\e[0m", scr_width, line_buf);
|
printf(OPT_BATCH_MODE ? "%.*s" : "\e[7m%.*s\e[0m", scr_width, line_buf);
|
||||||
lines_rem--;
|
lines_rem--;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user