Changeset 3bacee1 in mainline for uspace/dist/src/c/demos/top/top.c


Ignore:
Timestamp:
2018-04-12T16:27:17Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/top/top.c

    r76d0981d r3bacee1  
    6262
    6363static 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 },
    7373};
    7474
     
    8787
    8888static 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 },
    9696};
    9797
     
    108108
    109109static 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 },
    116116};
    117117
     
    383383                return 0;
    384384        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)
    387387                        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)
    390390                        return -1 * sort_reverse;
    391391                return 0;
Note: See TracChangeset for help on using the changeset viewer.