Changeset dd6c71c in mainline for uspace/app/top/screen.c
- Timestamp:
- 2010-04-02T08:27:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 175ad5c6
- Parents:
- 62550dce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/screen.c
r62550dce rdd6c71c 38 38 #include <io/console.h> 39 39 #include <vfs/vfs.h> 40 #include <load.h> 40 41 #include "screen.h" 41 42 #include "top.h" … … 73 74 static inline void print_uptime(data_t *data) 74 75 { 75 printf("up %4d days, %02d:%02d:%02d ", data->uptime_d, data->uptime_h,76 printf("up %4d days, %02d:%02d:%02d, ", data->uptime_d, data->uptime_h, 76 77 data->uptime_m, data->uptime_s); 77 78 } 78 79 79 static int i = 0; 80 static inline void print_load(data_t *data) 81 { 82 puts("load avarage: "); 83 print_load_fragment(data->load[0], 2); 84 puts(" "); 85 print_load_fragment(data->load[1], 2); 86 puts(" "); 87 print_load_fragment(data->load[2], 2); 88 } 89 90 static inline void print_taskstat(data_t *data) 91 { 92 puts("Tasks: "); 93 printf("%4u total", data->task_count); 94 } 95 80 96 void print_data(data_t *data) 81 97 { … … 85 101 print_time(data); 86 102 print_uptime(data); 87 puts(" ... \n"); 88 printf("A dalsi radek topu - jiz po %dte", ++i); 103 print_load(data); 104 puts("\n"); 105 print_taskstat(data); 106 puts("\n"); 89 107 fflush(stdout); 90 108 }
Note:
See TracChangeset
for help on using the changeset viewer.