Changeset bdfd3c97 in mainline for uspace/app/top/top.c
- Timestamp:
- 2010-04-14T15:40:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95319bd
- Parents:
- a307beb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.c
ra307beb rbdfd3c97 56 56 #define MINUTE 60 57 57 58 int number = 0;59 int number2 = 0; 58 int operation_type; 59 60 60 static void read_data(data_t *target) 61 61 { … … 188 188 189 189 /* And paint screen until death... */ 190 operation_type = OP_TASKS; 190 191 while (true) { 191 192 char c = tgetchar(UPDATE_INTERVAL); … … 202 203 clear_screen(); 203 204 return 0; 205 case 'i': 206 PRINT_WARNING("Showing IPC statistics", c); 207 operation_type = OP_IPC; 208 break; 209 case 't': 210 PRINT_WARNING("Showing task stats", c); 211 operation_type = OP_TASKS; 212 break; 204 213 default: 205 214 PRINT_WARNING("Unknown command: %c", c);
Note:
See TracChangeset
for help on using the changeset viewer.