Changeset e99ba00 for tools/tracetop


Ignore:
Timestamp:
03/11/13 13:40:51 (8 years ago)
Author:
Shane Alcock <salcock@…>
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:
91283e8
Parents:
c7c10de
Message:
  • Widen the protocol field in tracetop slightly - not big enough to fit "icmp-ipv6" otherwise
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    rc7c10de re99ba00  
    330330                printw("%s\t", "dport");
    331331        if (use_protocol)
    332                 printw("proto\t");
     332                printw("%10s\t", "proto");
    333333        switch(display_as) {
    334334                case BYTES:
     
    395395                        struct protoent *proto = getprotobynumber(pq.top().protocol);
    396396                        if (proto)
    397                                 printw("%-5s\t", proto->p_name);
     397                                printw("%-10s\t", proto->p_name);
    398398                        else
    399                                 printw("%5d\t",pq.top().protocol);
     399                                printw("%10d\t",pq.top().protocol);
    400400                }
    401401                switch (display_as) {
Note: See TracChangeset for help on using the changeset viewer.