Changeset 2528816 for tools/tracetop


Ignore:
Timestamp:
03/23/09 17:05:06 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
752353b
Parents:
5dd06d6
Message:

Visual cleanups of column headings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    r5dd06d6 r2528816  
    181181        getmaxyx(stdscr,row,col);
    182182        attrset(A_REVERSE);
    183         mvprintw(0,0,"%15s:%s\t%15s:%s\tproto\tbytes\tpackets\n",
    184                 "sip","sport",
    185                 "dip","dport"
     183        mvprintw(0,0,"%20s/%s\t%20s/%s\tproto\tbytes\tpackets\n",
     184                "source ip","sport",
     185                "dest ip","dport"
    186186                );
    187187        attrset(A_NORMAL);
     
    189189        char dipstr[1024];
    190190        for(int i=0; i<row-2 && !pq.empty(); ++i) {
    191                 mvprintw(i+1,0,"%s/%d\t%s/%d\t%d\t%"PRIu64"\t%"PRIu64"\n",
     191                mvprintw(i+1,0,"%20s/%-5d\t%20s/%-5d\t%d\t%"PRIu64"\t%"PRIu64"\n",
    192192                                trace_sockaddr2string((struct sockaddr*)&pq.top().sip,
    193193                                        sizeof(struct sockaddr_storage),
Note: See TracChangeset for help on using the changeset viewer.