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