Changes in uspace/app/top/screen.c [96b02eb9:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/screen.c
r96b02eb9 rffa2c8ef 37 37 38 38 #include <stdio.h> 39 #include <ipc/ipc.h>40 39 #include <io/console.h> 41 40 #include <io/style.h> … … 274 273 { 275 274 screen_style_inverted(); 276 printf("[taskid] [thr eads] [virtual] [%%virt] [%%user]"277 " [%% kernel] [name");275 printf("[taskid] [thrds] [resident] [%%resi] [virtual] [%%virt]" 276 " [%%user] [%%kern] [name"); 278 277 screen_newline(); 279 278 screen_style_normal(); … … 295 294 perc_task_t *perc = data->tasks_perc + data->tasks_map[i]; 296 295 296 uint64_t resmem; 297 char resmem_suffix; 298 order_suffix(task->resmem, &resmem, &resmem_suffix); 299 297 300 uint64_t virtmem; 298 301 char virtmem_suffix; 299 302 order_suffix(task->virtmem, &virtmem, &virtmem_suffix); 300 303 301 printf("%-8" PRIu64 " %9zu %8" PRIu64 "%c ", task->task_id, 302 task->threads, virtmem, virtmem_suffix); 304 printf("%-8" PRIu64 " %7zu %9" PRIu64 "%c ", 305 task->task_id, task->threads, resmem, resmem_suffix); 306 print_percent(perc->resmem, 2); 307 printf(" %8" PRIu64 "%c ", virtmem, virtmem_suffix); 303 308 print_percent(perc->virtmem, 2); 304 309 puts(" "); 305 310 print_percent(perc->ucycles, 2); 306 puts(" 311 puts(" "); 307 312 print_percent(perc->kcycles, 2); 308 313 puts(" ");
Note:
See TracChangeset
for help on using the changeset viewer.