Changeset 3bacee1 in mainline for uspace/dist/src/c/demos/top/top.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/top/top.c
r76d0981d r3bacee1 62 62 63 63 static const column_t task_columns[] = { 64 { "taskid", 't', 8},65 { "thrds", 'h', 7},66 { "resident", 'r', 10},67 { "%resi", 'R', 7},68 { "virtual", 'v', 9},69 { "%virt", 'V', 7},70 { "%user", 'U', 7},71 { "%kern", 'K', 7},72 { "name", 'd', 0},64 { "taskid", 't', 8 }, 65 { "thrds", 'h', 7 }, 66 { "resident", 'r', 10 }, 67 { "%resi", 'R', 7 }, 68 { "virtual", 'v', 9 }, 69 { "%virt", 'V', 7 }, 70 { "%user", 'U', 7 }, 71 { "%kern", 'K', 7 }, 72 { "name", 'd', 0 }, 73 73 }; 74 74 … … 87 87 88 88 static const column_t ipc_columns[] = { 89 { "taskid", 't', 8},90 { "cls snt", 'c', 9},91 { "cls rcv", 'C', 9},92 { "ans snt", 'a', 9},93 { "ans rcv", 'A', 9},94 { "forward", 'f', 9},95 { "name", 'd', 0},89 { "taskid", 't', 8 }, 90 { "cls snt", 'c', 9 }, 91 { "cls rcv", 'C', 9 }, 92 { "ans snt", 'a', 9 }, 93 { "ans rcv", 'A', 9 }, 94 { "forward", 'f', 9 }, 95 { "name", 'd', 0 }, 96 96 }; 97 97 … … 108 108 109 109 static const column_t exception_columns[] = { 110 { "exc", 'e', 8},111 { "count", 'n', 10},112 { "%count", 'N', 8},113 { "cycles", 'c', 10},114 { "%cycles", 'C', 9},115 { "description", 'd', 0},110 { "exc", 'e', 8 }, 111 { "count", 'n', 10 }, 112 { "%count", 'N', 8 }, 113 { "cycles", 'c', 10 }, 114 { "%cycles", 'C', 9 }, 115 { "description", 'd', 0 }, 116 116 }; 117 117 … … 383 383 return 0; 384 384 case FIELD_PERCENT: 385 if (fa->fixed.upper * fb->fixed.lower 386 >fb->fixed.upper * fa->fixed.lower)385 if (fa->fixed.upper * fb->fixed.lower > 386 fb->fixed.upper * fa->fixed.lower) 387 387 return 1 * sort_reverse; 388 if (fa->fixed.upper * fb->fixed.lower 389 <fb->fixed.upper * fa->fixed.lower)388 if (fa->fixed.upper * fb->fixed.lower < 389 fb->fixed.upper * fa->fixed.lower) 390 390 return -1 * sort_reverse; 391 391 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.