From: Julien Desfossez Date: Fri, 23 Mar 2012 19:44:39 +0000 (-0400) Subject: Slightly clearer process detail view for IO X-Git-Tag: v0.2~47 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=93d80d352e03c068f95da969b4bd8b503b7a1dac;p=lttngtop.git Slightly clearer process detail view for IO Signed-off-by: Julien Desfossez --- diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 042d45a..2262d41 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -448,13 +448,20 @@ void update_process_details() print_key_title("WRITE B/s", 7); wprintw(center, "%d", tmp->filewrite); + wattron(center, A_BOLD); + mvwprintw(center, 8, 1, "FD"); + mvwprintw(center, 8, 12, "READ"); + mvwprintw(center, 8, 22, "WRITE"); + mvwprintw(center, 8, 32, "FILENAME"); + wattroff(center, A_BOLD); + for (i = 0; i < tmp->process_files_table->len; i++) { file_tmp = get_file(tmp, i); if (file_tmp != NULL) { - print_key_title("file", 8+j); - wprintw(center, "%s fd = %d", file_tmp->name, i); - wprintw(center, " read = %d", file_tmp->read); - wprintw(center, " write = %d", file_tmp->write); + mvwprintw(center, 9 + j, 1, "%d", i); + mvwprintw(center, 9 + j, 12, "%d", file_tmp->read); + mvwprintw(center, 9 + j, 22, "%d", file_tmp->write); + mvwprintw(center, 9 + j, 32, "%s", file_tmp->name); j++; } }