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