Slightly clearer process detail view for IO
authorJulien Desfossez <julien.desfossez@efficios.com>
Fri, 23 Mar 2012 19:44:39 +0000 (15:44 -0400)
committerJulien Desfossez <julien.desfossez@efficios.com>
Fri, 23 Mar 2012 19:44:39 +0000 (15:44 -0400)
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/cursesdisplay.c

index 042d45a6feb6bfbfa7a0962f935fd0b1509d8a50..2262d41db4fc6e9cc1edc94ed73f56f7dca1a83b 100644 (file)
@@ -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++;
                }
        }
This page took 0.024092 seconds and 4 git commands to generate.